Class DefaultRequestMethodResolver
- java.lang.Object
-
- de.hybris.platform.cmswebservices.resolvers.impl.DefaultRequestMethodResolver
-
- All Implemented Interfaces:
RequestMethodResolver
public class DefaultRequestMethodResolver extends java.lang.Object implements RequestMethodResolver
Default implementation ofRequestMethodResolverto resolve a method name for a request.
-
-
Constructor Summary
Constructors Constructor Description DefaultRequestMethodResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.util.PathMatchergetPathMatcher()protected java.util.List<java.lang.String>getPostToGetUriList()java.lang.StringresolvePostToGet(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(java.util.List<java.lang.String> postToGetUriList)
-
-
-
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:
resolvePostToGetin interfaceRequestMethodResolver- 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)
-
-