Class SpringWebMvcHelper
java.lang.Object
io.microsphere.spring.webmvc.util.SpringWebMvcHelper
- All Implemented Interfaces:
io.microsphere.spring.web.util.SpringWebHelper
public class SpringWebMvcHelper
extends Object
implements io.microsphere.spring.web.util.SpringWebHelper
SpringWebHelper for Spring WebMVC- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
SpringWebHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(org.springframework.web.context.request.NativeWebRequest request, String cookieName, String cookieValue) voidaddHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String... headerValues) getBestMatchingHandler(org.springframework.web.context.request.NativeWebRequest request) getBestMatchingPattern(org.springframework.web.context.request.NativeWebRequest request) getCookieValue(org.springframework.web.context.request.NativeWebRequest request, String cookieName) protected jakarta.servlet.http.HttpServletRequestgetHttpServletRequest(org.springframework.web.context.request.NativeWebRequest request) protected jakarta.servlet.http.HttpServletResponsegetHttpServletResponse(org.springframework.web.context.request.NativeWebRequest request) getMatrixVariables(org.springframework.web.context.request.NativeWebRequest request) getMethod(org.springframework.web.context.request.NativeWebRequest request) getPathWithinHandlerMapping(org.springframework.web.context.request.NativeWebRequest request) Set<org.springframework.http.MediaType>getProducibleMediaTypes(org.springframework.web.context.request.NativeWebRequest request) protected org.springframework.web.context.request.ServletWebRequestgetServletWebRequest(org.springframework.web.context.request.NativeWebRequest request) io.microsphere.spring.web.util.SpringWebTypegetType()getUriTemplateVariables(org.springframework.web.context.request.NativeWebRequest request) voidsetHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String headerValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.microsphere.spring.web.util.SpringWebHelper
getHeader, getHeaderValues, getRequestBody, writeResponseBody
-
Constructor Details
-
SpringWebMvcHelper
public SpringWebMvcHelper()
-
-
Method Details
-
getMethod
- Specified by:
getMethodin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
setHeader
public void setHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String headerValue) - Specified by:
setHeaderin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
addHeader
public void addHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String... headerValues) - Specified by:
addHeaderin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getCookieValue
public String getCookieValue(org.springframework.web.context.request.NativeWebRequest request, String cookieName) - Specified by:
getCookieValuein interfaceio.microsphere.spring.web.util.SpringWebHelper
-
addCookie
public void addCookie(org.springframework.web.context.request.NativeWebRequest request, String cookieName, String cookieValue) - Specified by:
addCookiein interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getBestMatchingHandler
public Object getBestMatchingHandler(org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getBestMatchingHandlerin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getPathWithinHandlerMapping
public String getPathWithinHandlerMapping(org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getPathWithinHandlerMappingin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getBestMatchingPattern
public String getBestMatchingPattern(org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getBestMatchingPatternin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getUriTemplateVariables
public Map<String,String> getUriTemplateVariables(org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getUriTemplateVariablesin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getMatrixVariables
public Map<String,org.springframework.util.MultiValueMap<String, getMatrixVariablesString>> (org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getMatrixVariablesin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getProducibleMediaTypes
public Set<org.springframework.http.MediaType> getProducibleMediaTypes(org.springframework.web.context.request.NativeWebRequest request) - Specified by:
getProducibleMediaTypesin interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getType
public io.microsphere.spring.web.util.SpringWebType getType()- Specified by:
getTypein interfaceio.microsphere.spring.web.util.SpringWebHelper
-
getHttpServletResponse
@Nonnull protected jakarta.servlet.http.HttpServletResponse getHttpServletResponse(org.springframework.web.context.request.NativeWebRequest request) -
getHttpServletRequest
@Nonnull protected jakarta.servlet.http.HttpServletRequest getHttpServletRequest(org.springframework.web.context.request.NativeWebRequest request) -
getServletWebRequest
protected org.springframework.web.context.request.ServletWebRequest getServletWebRequest(org.springframework.web.context.request.NativeWebRequest request)
-