public class CustomParameterRequest extends SlingHttpServletRequestWrapper
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
CustomParameterRequest(SlingHttpServletRequest request,
ParameterMap params,
java.lang.String method) |
CustomParameterRequest(SlingHttpServletRequest request,
java.lang.String method) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod() |
java.lang.String |
getParameter(java.lang.String name) |
java.util.Map |
getParameterMap() |
java.util.Enumeration |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String name) |
RequestParameter |
getRequestParameter(java.lang.String name)
Returns the value of a request parameter as a
RequestParameter ,
or null if the parameter does not exist. |
RequestParameterMap |
getRequestParameterMap()
Returns a
Map of the parameters of this request. |
RequestParameter[] |
getRequestParameters(java.lang.String name)
Returns an array of
RequestParameter objects containing all of
the values the given request parameter has, or null if the
parameter does not exist. |
adaptTo, getCookie, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestParameterList, getRequestPathInfo, getRequestProgressTracker, getResource, getResourceBundle, getResourceBundle, getResourceResolver, getResponseContentType, getResponseContentTypes, getSlingRequest
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public CustomParameterRequest(SlingHttpServletRequest request, ParameterMap params, java.lang.String method)
public CustomParameterRequest(SlingHttpServletRequest request, java.lang.String method)
public RequestParameter getRequestParameter(java.lang.String name)
SlingHttpServletRequest
RequestParameter
,
or null
if the parameter does not exist.
This method should only be used if the parameter has only one value. If
the parameter might have more than one value, use
SlingHttpServletRequest.getRequestParameters(String)
.
If this method is used with a multivalued parameter, the value returned
is equal to the first value in the array returned by
getRequestParameters
.
This method is a shortcut for
getRequestParameterMap().getValue(String)
.
getRequestParameter
in interface SlingHttpServletRequest
getRequestParameter
in class SlingHttpServletRequestWrapper
name
- a String
specifying the name of the parameterRequestParameter
representing the single value of the
parameterSlingHttpServletRequest.getRequestParameters(String)
,
RequestParameterMap.getValue(String)
public RequestParameterMap getRequestParameterMap()
SlingHttpServletRequest
Map
of the parameters of this request.
The values in the returned Map
are from type
RequestParameter
array (RequestParameter[]
).
If no parameters exist this method returns an empty Map
.
getRequestParameterMap
in interface SlingHttpServletRequest
getRequestParameterMap
in class SlingHttpServletRequestWrapper
Map
containing parameter names as
keys and parameter values as map values, or an empty
Map
if no parameters exist. The keys in the
parameter map are of type String. The values in the parameter map
are of type RequestParameter
array (RequestParameter[]
).public RequestParameter[] getRequestParameters(java.lang.String name)
SlingHttpServletRequest
RequestParameter
objects containing all of
the values the given request parameter has, or null
if the
parameter does not exist.
If the parameter has a single value, the array has a length of 1.
This method is a shortcut for
getRequestParameterMap().getValues(String)
.
getRequestParameters
in interface SlingHttpServletRequest
getRequestParameters
in class SlingHttpServletRequestWrapper
name
- a String
containing the name of the parameter
the value of which is requestedRequestParameter
objects containing the
parameter values.SlingHttpServletRequest.getRequestParameter(String)
,
RequestParameterMap.getValues(String)
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface ServletRequest
getParameter
in class ServletRequestWrapper
public java.util.Map getParameterMap()
getParameterMap
in interface ServletRequest
getParameterMap
in class ServletRequestWrapper
public java.util.Enumeration getParameterNames()
getParameterNames
in interface ServletRequest
getParameterNames
in class ServletRequestWrapper
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface ServletRequest
getParameterValues
in class ServletRequestWrapper
public java.lang.String getMethod()
getMethod
in interface HttpServletRequest
getMethod
in class HttpServletRequestWrapper
Copyright © 2010 - 2020 Adobe. All Rights Reserved