Class DefaultRequestMethodResolver

java.lang.Object
de.hybris.platform.cmswebservices.resolvers.impl.DefaultRequestMethodResolver
All Implemented Interfaces:
RequestMethodResolver

public class DefaultRequestMethodResolver extends Object implements RequestMethodResolver
Default implementation of RequestMethodResolver to resolve a method name for a request.
  • Constructor Details

    • DefaultRequestMethodResolver

      public DefaultRequestMethodResolver()
  • Method Details

    • resolvePostToGet

      public 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 List<String> getPostToGetUriList()
    • setPostToGetUriList

      public void setPostToGetUriList(List<String> postToGetUriList)
    • getPathMatcher

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

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