Class SpringWebFluxHelper

  • All Implemented Interfaces:
    io.microsphere.spring.web.util.SpringWebHelper

    public class SpringWebFluxHelper
    extends java.lang.Object
    implements io.microsphere.spring.web.util.SpringWebHelper
    SpringWebHelper for Spring WebFlux
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    SpringWebHelper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCookie​(org.springframework.web.context.request.NativeWebRequest request, java.lang.String cookieName, java.lang.String cookieValue)  
      void addHeader​(org.springframework.web.context.request.NativeWebRequest request, java.lang.String headerName, java.lang.String... headerValues)  
      java.lang.Object getBestMatchingHandler​(org.springframework.web.context.request.NativeWebRequest request)  
      java.lang.String getBestMatchingPattern​(org.springframework.web.context.request.NativeWebRequest request)  
      java.lang.String getCookieValue​(org.springframework.web.context.request.NativeWebRequest request, java.lang.String cookieName)  
      java.util.Map<java.lang.String,​org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String>> getMatrixVariables​(org.springframework.web.context.request.NativeWebRequest request)  
      java.lang.String getMethod​(org.springframework.web.context.request.NativeWebRequest request)  
      java.lang.String getPathWithinHandlerMapping​(org.springframework.web.context.request.NativeWebRequest request)  
      java.util.Set<org.springframework.http.MediaType> getProducibleMediaTypes​(org.springframework.web.context.request.NativeWebRequest request)  
      protected org.springframework.http.HttpHeaders getResponseHeaders​(org.springframework.web.context.request.NativeWebRequest request)  
      protected org.springframework.http.server.reactive.ServerHttpRequest getServerHttpRequest​(org.springframework.web.context.request.NativeWebRequest request)  
      protected org.springframework.http.server.reactive.ServerHttpResponse getServerHttpResponse​(org.springframework.web.context.request.NativeWebRequest request)  
      protected ServerWebRequest getServerWebRequest​(org.springframework.web.context.request.NativeWebRequest request)  
      io.microsphere.spring.web.util.SpringWebType getType()  
      java.util.Map<java.lang.String,​java.lang.String> getUriTemplateVariables​(org.springframework.web.context.request.NativeWebRequest request)  
      void setHeader​(org.springframework.web.context.request.NativeWebRequest request, java.lang.String headerName, java.lang.String headerValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.microsphere.spring.web.util.SpringWebHelper

        getHeader, getHeaderValues, getRequestBody, writeResponseBody
    • Constructor Detail

      • SpringWebFluxHelper

        public SpringWebFluxHelper()
    • Method Detail

      • getMethod

        public java.lang.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,
                              java.lang.String headerName,
                              java.lang.String headerValue)
        Specified by:
        setHeader in interface io.microsphere.spring.web.util.SpringWebHelper
      • addHeader

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

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

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

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

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

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

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

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

        public java.util.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
      • 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)