|
UIX 2.2.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.data.RequestParameters | +--oracle.cabo.share.data.ServletRequestParameters
Class wrapping up access to parameters. This allows the values and contents of these parameters to be modified from their values in the HttpServletRequest
Field Summary | |
static java.lang.String |
HAS_COMPOUND_NAME Flag parameter indicating that the request contains a compound name that has to be parsed. |
Constructor Summary | |
ServletRequestParameters(java.util.Dictionary requestParams) Returns a request parameters object wrapping the parameters of a ServletRequest. |
|
ServletRequestParameters(javax.servlet.ServletRequest request) Returns a request parameters object wrapping the parameters of a ServletRequest. |
Method Summary | |
static java.util.Dictionary |
createRequestDictionary(java.util.Dictionary requestParams) Returns a Dictionary containing the modified parameters and keys for Dictionary of input request parameters. |
static java.util.Dictionary |
createRequestDictionary(javax.servlet.ServletRequest request) Returns a Dictionary containing the modified parameters and keys for the ServletRequest. |
static void |
decodeCompoundKeyValues(java.lang.String compoundValue, int startIndex, java.util.Dictionary keyValues) Decodes key value pairs from a single value, placing the decoded values into the specified Dictionary of String[]s. |
static java.lang.String |
encodeCompoundKeyValues(java.util.Enumeration keyValues, int keyValueSize) Encodes an Enumeration key value pairs as a single value appended to the baseName, if any; |
static java.lang.String |
encodeCompoundKeyValues(java.util.Enumeration keyValues, int keyValueSize, java.util.Enumeration keyExchanges, int keyExchangesSize) Encodes an Enumeration key value pairs as a single value appended to the baseName, if any. |
static java.lang.String |
encodeCompoundKeyValues(java.lang.String namePrefix, java.util.Enumeration keyValues, int keyValueSize) Encodes an Enumeration key value pairs as a single value appended to the baseName, if any; |
static java.lang.String |
encodeCompoundKeyValues(java.lang.String namePrefix, java.util.Enumeration keyValues, int keyValueSize, java.lang.String exchangePrefix, java.util.Enumeration keyExchanges, int keyExchangesSize) Encodes an Enumeration key value pairs as a single value appended to the baseName, if any; |
java.lang.String |
getParameter(java.lang.String name) Returns the value of a request parameter as a String , or null if the parameter does not exist. |
java.util.Enumeration |
getParameterNames() Returns an Enumeration of String objects containing the names of the parameters contained in this request. |
java.lang.String[] |
getParameterValues(java.lang.String name) Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String HAS_COMPOUND_NAME
Constructor Detail |
public ServletRequestParameters(javax.servlet.ServletRequest request)
public ServletRequestParameters(java.util.Dictionary requestParams)
Method Detail |
public static java.util.Dictionary createRequestDictionary(javax.servlet.ServletRequest request)
The returned Dictionary may not support mutation.
public static java.util.Dictionary createRequestDictionary(java.util.Dictionary requestParams)
If not modification is required the returned Dicitonary instance will be the <cpde>requestParams instance.
public static void decodeCompoundKeyValues(java.lang.String compoundValue, int startIndex, java.util.Dictionary keyValues)
adapted from oracle.cabo.servlet.url.DefaultPageEncoder
public static java.lang.String encodeCompoundKeyValues(java.lang.String namePrefix, java.util.Enumeration keyValues, int keyValueSize)
public static java.lang.String encodeCompoundKeyValues(java.lang.String namePrefix, java.util.Enumeration keyValues, int keyValueSize, java.lang.String exchangePrefix, java.util.Enumeration keyExchanges, int keyExchangesSize)
public static java.lang.String encodeCompoundKeyValues(java.util.Enumeration keyValues, int keyValueSize)
public static java.lang.String encodeCompoundKeyValues(java.util.Enumeration keyValues, int keyValueSize, java.util.Enumeration keyExchanges, int keyExchangesSize)
public java.lang.String getParameter(java.lang.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(java.lang.String)
.
If you use this method with a multivalued parameter, the value returned is equal to the first value in the array returned by getParameterValues
.
getParameter
in class RequestParameters
name
- a String
specifying the name of the parameterString
representing the single value of the parametergetParameterValues(java.lang.String)
public java.util.Enumeration getParameterNames()
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
.getParameterNames
in class RequestParameters
Enumeration
of String
objects, each String
containing the name of a request parameter; or an empty Enumeration
if the request has no parameterspublic java.lang.String[] getParameterValues(java.lang.String name)
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.
getParameterValues
in class RequestParameters
name
- a String
containing the name of the parameter whose value is requestedString
objects containing the parameter's valuesgetParameter(java.lang.String)
|
UIX 2.2.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |