|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.portlet.mvc.annotation.PortletAnnotationMappingUtils
abstract class PortletAnnotationMappingUtils
Helper class for annotation-based request mapping.
Constructor Summary | |
---|---|
PortletAnnotationMappingUtils()
|
Method Summary | |
---|---|
static boolean |
checkHeaders(java.lang.String[] headers,
PortletRequest request)
Check whether the given request matches the specified header conditions. |
static boolean |
checkParameters(java.lang.String[] params,
PortletRequest request)
Check whether the given request matches the specified parameter conditions. |
static boolean |
checkRequestMethod(RequestMethod[] methods,
PortletRequest request)
Check whether the given request matches the specified request methods. |
static boolean |
checkRequestMethod(java.util.Set<java.lang.String> methods,
PortletRequest request)
Check whether the given request matches the specified request methods. |
private static boolean |
isMediaTypeHeader(java.lang.String headerName)
|
static boolean |
validateModeMapping(java.lang.String[] modes,
java.lang.String[] typeLevelModes)
Check whether the given portlet modes matches the specified type-level modes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PortletAnnotationMappingUtils()
Method Detail |
---|
public static boolean validateModeMapping(java.lang.String[] modes, java.lang.String[] typeLevelModes)
modes
- the mapped portlet modes to checktypeLevelModes
- the type-level mode mappings to check againstpublic static boolean checkRequestMethod(RequestMethod[] methods, PortletRequest request)
methods
- the request methods to check againstrequest
- the current request to checkpublic static boolean checkRequestMethod(java.util.Set<java.lang.String> methods, PortletRequest request)
methods
- the request methods to check againstrequest
- the current request to checkpublic static boolean checkParameters(java.lang.String[] params, PortletRequest request)
params
- the parameter conditions, following
RequestMapping.params()
request
- the current request to checkpublic static boolean checkHeaders(java.lang.String[] headers, PortletRequest 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 |