|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.mvc.annotation.ServletAnnotationMappingUtils
abstract class ServletAnnotationMappingUtils
Helper class for annotation-based request mapping.
Constructor Summary | |
---|---|
ServletAnnotationMappingUtils()
|
Method Summary | |
---|---|
static boolean |
checkHeaders(java.lang.String[] headers,
HttpServletRequest request)
Check whether the given request matches the specified header conditions. |
static boolean |
checkParameters(java.lang.String[] params,
HttpServletRequest request)
Check whether the given request matches the specified parameter conditions. |
static boolean |
checkRequestMethod(RequestMethod[] methods,
HttpServletRequest request)
Check whether the given request matches the specified request methods. |
private static boolean |
isMediaTypeHeader(java.lang.String headerName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ServletAnnotationMappingUtils()
Method Detail |
---|
public static boolean checkRequestMethod(RequestMethod[] methods, HttpServletRequest request)
methods
- the HTTP request methods to check againstrequest
- the current HTTP request to checkpublic static boolean checkParameters(java.lang.String[] params, HttpServletRequest request)
params
- the parameter conditions, following
RequestMapping.#params()
request
- the current HTTP request to checkpublic static boolean checkHeaders(java.lang.String[] headers, HttpServletRequest request)
headers
- the header conditions, following
RequestMapping.headers()
request
- the current HTTP request to checkprivate static boolean isMediaTypeHeader(java.lang.String headerName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |