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 Details

    • SpringWebMvcHelper

      public SpringWebMvcHelper()
  • Method Details

    • getMethod

      public String getMethod(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getMethod in interface io.microsphere.spring.web.util.SpringWebHelper
    • setHeader

      public void setHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String headerValue)
      Specified by:
      setHeader in interface io.microsphere.spring.web.util.SpringWebHelper
    • addHeader

      public void addHeader(org.springframework.web.context.request.NativeWebRequest request, String headerName, String... headerValues)
      Specified by:
      addHeader in interface io.microsphere.spring.web.util.SpringWebHelper
    • getCookieValue

      public String getCookieValue(org.springframework.web.context.request.NativeWebRequest request, String cookieName)
      Specified by:
      getCookieValue in interface io.microsphere.spring.web.util.SpringWebHelper
    • addCookie

      public void addCookie(org.springframework.web.context.request.NativeWebRequest request, String cookieName, String cookieValue)
      Specified by:
      addCookie in interface io.microsphere.spring.web.util.SpringWebHelper
    • getBestMatchingHandler

      public Object getBestMatchingHandler(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getBestMatchingHandler in interface io.microsphere.spring.web.util.SpringWebHelper
    • getPathWithinHandlerMapping

      public String getPathWithinHandlerMapping(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getPathWithinHandlerMapping in interface io.microsphere.spring.web.util.SpringWebHelper
    • getBestMatchingPattern

      public String getBestMatchingPattern(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getBestMatchingPattern in interface io.microsphere.spring.web.util.SpringWebHelper
    • getUriTemplateVariables

      public Map<String,String> getUriTemplateVariables(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getUriTemplateVariables in interface io.microsphere.spring.web.util.SpringWebHelper
    • getMatrixVariables

      public Map<String,org.springframework.util.MultiValueMap<String,String>> getMatrixVariables(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getMatrixVariables in interface io.microsphere.spring.web.util.SpringWebHelper
    • getProducibleMediaTypes

      public Set<org.springframework.http.MediaType> getProducibleMediaTypes(org.springframework.web.context.request.NativeWebRequest request)
      Specified by:
      getProducibleMediaTypes in interface io.microsphere.spring.web.util.SpringWebHelper
    • getType

      public io.microsphere.spring.web.util.SpringWebType getType()
      Specified by:
      getType in interface io.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)