abstract class PortletAnnotationMappingUtils
extends java.lang.Object
Constructor and Description |
---|
PortletAnnotationMappingUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)