public class PortletAnnotationMappingUtils extends Object
Constructor and Description |
---|
PortletAnnotationMappingUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkHeaders(String[] headers,
javax.portlet.PortletRequest request)
Check whether the given request matches the specified header conditions.
|
static boolean |
checkParameters(String[] params,
javax.portlet.PortletRequest request)
Check whether the given request matches the specified parameter conditions.
|
static boolean |
checkRequestMethod(RequestMethod[] methods,
javax.portlet.PortletRequest request)
Check whether the given request matches the specified request methods.
|
static boolean |
checkRequestMethod(Set<String> methods,
javax.portlet.PortletRequest request)
Check whether the given request matches the specified request methods.
|
static boolean |
validateModeMapping(String[] modes,
String[] typeLevelModes)
Check whether the given portlet modes matches the specified type-level modes.
|
public static boolean checkHeaders(String[] headers, javax.portlet.PortletRequest request)
headers
- the header conditions, following RequestMapping#headers()
request
- the current HTTP request to checkpublic static boolean checkParameters(String[] params, javax.portlet.PortletRequest request)
params
- the parameter conditions, following RequestMapping.params()
request
- the current request to checkpublic static boolean checkRequestMethod(RequestMethod[] methods, javax.portlet.PortletRequest request)
methods
- the request methods to check againstrequest
- the current request to checkpublic static boolean checkRequestMethod(Set<String> methods, javax.portlet.PortletRequest request)
methods
- the request methods to check againstrequest
- the current request to checkCopyright © 2019 Liferay, Inc.. All rights reserved.