Class DefaultRequestMethodResolver
java.lang.Object
de.hybris.platform.cmswebservices.resolvers.impl.DefaultRequestMethodResolver
- All Implemented Interfaces:
RequestMethodResolver
Default implementation of
RequestMethodResolver to resolve a method name for a request.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.util.PathMatcherresolvePostToGet(javax.servlet.http.HttpServletRequest request) Method should return a "GET" for a particular "POST" request otherwise it returns the method name from the request.voidsetPathMatcher(org.springframework.util.PathMatcher pathMatcher) voidsetPostToGetUriList(List<String> postToGetUriList)
-
Constructor Details
-
DefaultRequestMethodResolver
public DefaultRequestMethodResolver()
-
-
Method Details
-
resolvePostToGet
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:
resolvePostToGetin interfaceRequestMethodResolver- Parameters:
request- the request- Returns:
- the method name
-
getPostToGetUriList
-
setPostToGetUriList
-
getPathMatcher
protected org.springframework.util.PathMatcher getPathMatcher() -
setPathMatcher
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
-