Class ParameterSupport
java.lang.Object
org.apache.sling.engine.impl.parameters.ParameterSupport
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Request attribute which is set if the current request is "started" by callingSlingRequestProcessor.processRequest(HttpServletRequest, HttpServletResponse, ResourceResolver)
This marker is evaluated ingetRequestParameterMapInternal()
.static final String
The name of the form encoding request parameter indicating the character encoding of submitted request parameters.static final String
request attribute that stores the parts iterator when streamingstatic final String
name of the header used to identify an upload modestatic final String
value of upload mode header/parameter indicating streaming is requestedstatic final String
name of the parameter used to identify upload mode -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterSupport
getInstance
(javax.servlet.http.HttpServletRequest request) Returns theParameterSupport
instance supporting request parameter for the giverequest
.getParameter
(String name) static javax.servlet.http.HttpServletRequestWrapper
getParameterSupportRequestWrapper
(javax.servlet.http.HttpServletRequest request) Returns aHttpServletRequestWrapper
which implements request parameter access backed by an instance of theParameterSupport
class.String[]
getParameterValues
(String name) Collection<?>
getParts()
getRequestParameter
(String name) getRequestParameters
(String name) boolean
-
Field Details
-
PARAMETER_FORMENCODING
The name of the form encoding request parameter indicating the character encoding of submitted request parameters. This request parameter overwrites any value of theServletRequest.getCharacterEncoding()
method (which unfortunately happens to be returningnull
most of the time.- See Also:
-
MARKER_IS_SERVICE_PROCESSING
Request attribute which is set if the current request is "started" by callingSlingRequestProcessor.processRequest(HttpServletRequest, HttpServletResponse, ResourceResolver)
This marker is evaluated ingetRequestParameterMapInternal()
. -
SLING_UPLOADMODE_HEADER
name of the header used to identify an upload mode- See Also:
-
UPLOADMODE_PARAM
name of the parameter used to identify upload mode- See Also:
-
REQUEST_PARTS_ITERATOR_ATTRIBUTE
request attribute that stores the parts iterator when streaming- See Also:
-
STREAM_UPLOAD
value of upload mode header/parameter indicating streaming is requested- See Also:
-
-
Method Details
-
getInstance
Returns theParameterSupport
instance supporting request parameter for the giverequest
. For a single request only a single instance is actually used. This single instance is cached as a request attribute. If such an attribute already exists which is not an instance of this class, the request parameter is replaced.- Parameters:
request
- TheHttpServletRequest
for which to return request parameter support.- Returns:
- The
ParameterSupport
for the given request.
-
getParameterSupportRequestWrapper
public static javax.servlet.http.HttpServletRequestWrapper getParameterSupportRequestWrapper(javax.servlet.http.HttpServletRequest request) Returns aHttpServletRequestWrapper
which implements request parameter access backed by an instance of theParameterSupport
class.- Parameters:
request
- TheHttpServletRequest
to wrap- Returns:
- The wrapped
request
-
requestDataUsed
public boolean requestDataUsed() -
getParameter
-
getParameterValues
-
getParameterMap
-
getParameterNames
-
getRequestParameter
-
getRequestParameters
-
getPart
-
getParts
-
getRequestParameterMap
-
getRequestParameterList
-