public class InOrderServletRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| Modifier and Type | Field and Description |
|---|---|
static int |
BODY_PARAM
Identifier used to identify HTTP body parameters
|
static String |
DEFAULT_CHARACTER_ENCODING
standard encoding used to decode the URL string.
|
static int |
QUERY_PARAM
Identifier used to identify query parameters
|
| Constructor and Description |
|---|
InOrderServletRequestWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext sContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getParameter(String name)
Returns the value of a request parameter as a
String, or null if the
parameter does not exist. |
String |
getParameter(String name,
int parameterType)
Returns the value of a request parameter as a
String, or null if the
parameter does not exist. |
Enumeration |
getParameterNames()
Returns an
Enumeration of String objects containing the names of the
parameters. |
Enumeration |
getParameterNames(int parameterType)
Returns an
Enumeration of String objects containing the names of the
parameters contained in this request. |
String |
getParameterValues(String name,
int parameterType)
Returns an array of
String objects containing all of the values the given request
parameter has, or null if the parameter does not exist. |
protected void |
parseParameters(javax.servlet.http.HttpServletRequest req)
parses the Query and if availlable also HTTP POST parameters
|
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logoutgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic static final String DEFAULT_CHARACTER_ENCODING
public static final int QUERY_PARAM
public static final int BODY_PARAM
public InOrderServletRequestWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext sContext)
HttpServletRequestWrapperprotected final void parseParameters(javax.servlet.http.HttpServletRequest req)
req - a HttpServletRequest which should be parsedpublic final String getParameter(String name)
String, or null if the
parameter does not exist. Request parameters are extra information sent with the request. For HTTP
servlets, parameters are contained in the query string or posted form data.
You should only use this method when you are sure the parameter has only one value. If the parameter
might have more than one value, use getParameterValues(String, int).
If you use this method with a multivalued parameter, the value returned is equal to the first value in
the array returned by getParameterValues.
If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then
reading the body directly via ServletRequestWrapper.getInputStream() or ServletRequestWrapper.getReader()can interfere with the
execution of this method.
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrappername - a String containing the name of the parameter whose value is requestedString representing the single value of the parametergetParameterValues(String, int)public final String getParameter(String name, int parameterType)
String, or null if the
parameter does not exist.name - a String containing the name of the parameter whose value is requestedparameterType - type of parameterand @see at.gv.egovernment.moa.id.util.InOrderServletRequestWrapper#BODY_PARAM,
ServletRequestWrapper.getParameterValues(String)public final String getParameterValues(String name, int parameterType)
String 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.
name - a String containing the name of the parameter whose value is requestedparameterType - type of parameterString objects containing the parameter's values or nulland @see at.gv.egovernment.moa.id.util.InOrderServletRequestWrapper#BODY_PARAM,
getParameter(java.lang.String)public final Enumeration getParameterNames()
Enumeration of String objects containing the names of the
parameters. If there are no parameters, the method returns an empty
Enumeration.getParameterNames in interface javax.servlet.ServletRequestgetParameterNames in class javax.servlet.ServletRequestWrapperEnumeration of String objects, each String
containing the name of a request parameter; or an empty Enumeration if the
request has no parameterspublic final Enumeration getParameterNames(int parameterType)
Enumeration of String objects containing the names of the
parameters contained in this request. If the request has no parameters, the method returns an empty
Enumeration.parameterType - type of parameterEnumeration of String objects, each String
containing the name of a request parameter; or an empty Enumeration if the
request has no parametersCopyright © 2017. All rights reserved.