Class DefaultRequestMethodResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.util.PathMatcher getPathMatcher()  
      protected java.util.List<java.lang.String> getPostToGetUriList()  
      java.lang.String resolvePostToGet​(javax.servlet.http.HttpServletRequest request)
      Method should return a "GET" for a particular "POST" request otherwise it returns the method name from the request.
      void setPathMatcher​(org.springframework.util.PathMatcher pathMatcher)  
      void setPostToGetUriList​(java.util.List<java.lang.String> postToGetUriList)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRequestMethodResolver

        public DefaultRequestMethodResolver()
    • Method Detail

      • resolvePostToGet

        public java.lang.String resolvePostToGet​(javax.servlet.http.HttpServletRequest request)
        Method should return a "GET" for a particular "POST" request otherwise it returns the method name from the request. The function uses a list of uri. Whenever a POST request is made for one of them the function returns GET as a result.
        Specified by:
        resolvePostToGet in interface RequestMethodResolver
        Parameters:
        request - the request
        Returns:
        the method name
      • getPostToGetUriList

        protected java.util.List<java.lang.String> getPostToGetUriList()
      • setPostToGetUriList

        public void setPostToGetUriList​(java.util.List<java.lang.String> postToGetUriList)
      • getPathMatcher

        protected org.springframework.util.PathMatcher getPathMatcher()
      • setPathMatcher

        public void setPathMatcher​(org.springframework.util.PathMatcher pathMatcher)