Class SpringWebFluxHelper

java.lang.Object
io.microsphere.spring.webflux.util.SpringWebFluxHelper
All Implemented Interfaces:
SpringWebHelper

public class SpringWebFluxHelper extends Object implements SpringWebHelper
SpringWebHelper for Spring WebFlux
Since:
1.0.0
Author:
Mercy
See Also:
  • Constructor Details

    • SpringWebFluxHelper

      public SpringWebFluxHelper()
  • Method Details

    • getMethod

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

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

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

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

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

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

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

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

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

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

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

      public SpringWebType getType()
      Specified by:
      getType in interface SpringWebHelper
    • getServerHttpResponse

      protected org.springframework.http.server.reactive.ServerHttpResponse getServerHttpResponse(org.springframework.web.context.request.NativeWebRequest request)
    • getResponseHeaders

      protected org.springframework.http.HttpHeaders getResponseHeaders(org.springframework.web.context.request.NativeWebRequest request)
    • getServerHttpRequest

      protected org.springframework.http.server.reactive.ServerHttpRequest getServerHttpRequest(org.springframework.web.context.request.NativeWebRequest request)
    • getServerWebRequest

      protected ServerWebRequest getServerWebRequest(org.springframework.web.context.request.NativeWebRequest request)