AbstractRequestAdapter, BasicRequestAdapter, QuartzJobRequestAdapterpublic interface RequestAdapter
| Modifier and Type | Method | Description |
|---|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value) |
Add the given single header value to the current list of values
for the given header.
|
boolean |
containsHeader(java.lang.String name) |
Returns a boolean indicating whether the named response header
has already been set.
|
java.util.Map<java.lang.String,java.lang.Object> |
copyAllParameters() |
Returns the parameter copied to the new instance.
|
void |
fillAllAttributes(java.util.Map<java.lang.String,java.lang.Object> targetAttributes) |
Fills all attributes to the specified map.
|
void |
fillAllParameters(java.util.Map<java.lang.String,java.lang.Object> targetParameters) |
Fills all parameters to the specified map.
|
<T> T |
getAdaptee() |
Returns the adaptee object to provide request information.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllAttributes() |
Returns an immutable map of the attributes,
with attribute names as map keys and attribute value as map value.
|
MultiValueMap<java.lang.String,java.lang.String> |
getAllHeaders() |
Returns a map of the request headers that can be modified.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllParameters() |
Return an immutable Map of the request parameters,
with parameter names as map keys and parameter values as map values.
|
<T> T |
getAttribute(java.lang.String name) |
Returns the value of the named attribute as a given type,
or
null if no attribute of the given name exists. |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
Returns an
Enumeration containing the
names of the attributes available to this request. |
java.lang.String |
getEncoding() |
Returns the name of the character encoding used in the body of this request.
|
FileParameter |
getFileParameter(java.lang.String name) |
Returns a
FileParameter object as a given request parameter name,
or null if the file parameter does not exist. |
java.util.Enumeration<java.lang.String> |
getFileParameterNames() |
Returns an
Enumeration of String objects containing
the names of the file parameters contained in this request. |
FileParameter[] |
getFileParameterValues(java.lang.String name) |
Returns an array of
FileParameter objects containing all
of the values the given request parameter has,
or null if the parameter does not exist. |
java.lang.String |
getHeader(java.lang.String name) |
Returns the value of the response header with the given name.
|
java.util.Collection<java.lang.String> |
getHeaderNames() |
Returns the names of the headers of this response.
|
java.util.Collection<java.lang.String> |
getHeaders(java.lang.String name) |
Returns the values of the response header with the given name.
|
java.util.Locale |
getLocale() |
Returns the preferred
Locale. |
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<java.lang.String> |
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 activity's request parameter has,
or null if the parameter does not exist. |
MethodType |
getRequestMethod() |
Returns the method used for the request.
|
RequestScope |
getRequestScope() |
Gets the request scope.
|
RequestScope |
getRequestScope(boolean create) |
Gets the request scope.
|
java.util.TimeZone |
getTimeZone() |
Returns the preferred
TimeZone. |
boolean |
isMaxLengthExceeded() |
Returns whether request header has exceed the maximum length.
|
void |
putAllAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
Copies all of the mappings from the specified attributes.
|
void |
removeAttribute(java.lang.String name) |
Removes an attribute from this request.
|
void |
removeFileParameter(java.lang.String name) |
Removes the file parameter with the specified name.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
Stores an attribute in this request.
|
void |
setEncoding(java.lang.String encoding) |
Overrides the name of the character encoding used in the body of this request.
|
void |
setFileParameter(java.lang.String name,
FileParameter fileParameter) |
Sets the
FileParameter object to the file parameter with the given name. |
void |
setFileParameter(java.lang.String name,
FileParameter[] fileParameters) |
Sets the value to the file parameter with the given name.
|
void |
setHeader(java.lang.String name,
java.lang.String value) |
Set the given single header value under the given header name.
|
void |
setLocale(java.util.Locale locale) |
Sets the preferred
Locale. |
void |
setMaxLengthExceeded(boolean maxLengthExceeded) |
Sets whether request header has exceed the maximum length.
|
void |
setParameter(java.lang.String name,
java.lang.String value) |
Sets the value to the parameter with the given name.
|
void |
setParameter(java.lang.String name,
java.lang.String[] values) |
Sets the value to the parameter with the given name.
|
void |
setTimeZone(java.util.TimeZone timeZone) |
Sets the preferred
TimeZone. |
<T> T getAdaptee()
T - the type of the adaptee objectRequestScope getRequestScope()
RequestScope getRequestScope(boolean create)
create - true to create a new request scope for this
request if necessary; false to return nulljava.lang.String getEncoding()
String containing the name of the character encoding,
or null if the request does not specify a character encodingvoid setEncoding(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
encoding - a String containing the name of the character encoding.java.io.UnsupportedEncodingException - if the specified encoding is invalidMethodType getRequestMethod()
MethodType objectMultiValueMap<java.lang.String,java.lang.String> getAllHeaders()
MultiValueMap object, may be nulljava.lang.String getHeader(java.lang.String name)
If a response header with the given name exists and contains multiple values, the value that was added first will be returned.
name - the name of the response header whose value to returnnull if no header with the given name has been set
on this responsejava.util.Collection<java.lang.String> getHeaders(java.lang.String name)
name - the name of the response header whose values to returnCollection of the values
of the response header with the given namejava.util.Collection<java.lang.String> getHeaderNames()
Collection of the names
of the headers of this responseboolean containsHeader(java.lang.String name)
name - the header nametrue if the named response header
has already been set; false otherwisevoid setHeader(java.lang.String name,
java.lang.String value)
name - the header namevalue - the header value to setvoid addHeader(java.lang.String name,
java.lang.String value)
name - the header namevalue - the header value to be addedjava.lang.String getParameter(java.lang.String name)
String,
or null if the parameter does not exist.name - a String specifying the name of the parameterString representing the
single value of the parametergetParameterValues(java.lang.String)java.lang.String[] getParameterValues(java.lang.String name)
String objects containing all
of the values the given activity's request parameter has,
or null if the parameter does not exist.name - a String specifying the name of the parameterString objects
containing the parameter's valuesgetParameter(java.lang.String)java.util.Enumeration<java.lang.String> 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.Enumeration of String objects, each String
containing the name of a request parameter;
or an empty Enumeration if the request has no parametersvoid setParameter(java.lang.String name,
java.lang.String value)
name - a String specifying the name of the parametervalue - a String representing the
single value of the parametersetParameter(String, String[])void setParameter(java.lang.String name,
java.lang.String[] values)
name - a String specifying the name of the parametervalues - an array of String objects
containing the parameter's valuessetParameter(java.lang.String, java.lang.String)java.util.Map<java.lang.String,java.lang.Object> getAllParameters()
java.util.Map<java.lang.String,java.lang.Object> copyAllParameters()
void fillAllParameters(java.util.Map<java.lang.String,java.lang.Object> targetParameters)
targetParameters - the target parameter map to be filledFileParameter getFileParameter(java.lang.String name)
FileParameter object as a given request parameter name,
or null if the file parameter does not exist.name - a String specifying the name of the file parameterFileParameter representing the
single value of the parametergetFileParameterValues(java.lang.String)FileParameter[] getFileParameterValues(java.lang.String name)
FileParameter objects containing all
of the values the given request parameter has,
or null if the parameter does not exist.name - a String specifying the name of the file parameterFileParameter objects
containing the parameter's valuesgetFileParameter(java.lang.String)java.util.Enumeration<java.lang.String> getFileParameterNames()
Enumeration of String objects containing
the names of the file parameters contained in this request.
If the request has no parameters, the method returns an empty Enumeration.Enumeration of String objects, each String
containing the name of a file parameter;
or an empty Enumeration if the request has no file parametersvoid setFileParameter(java.lang.String name,
FileParameter fileParameter)
FileParameter object to the file parameter with the given name.name - a String specifying the name of the file parameterfileParameter - a FileParameter representing the
single value of the parametersetFileParameter(String, FileParameter[])void setFileParameter(java.lang.String name,
FileParameter[] fileParameters)
name - a String specifying the name of the file parameterfileParameters - an array of FileParameter objects
containing the file parameter's valuessetFileParameter(java.lang.String, com.aspectran.core.activity.request.parameter.FileParameter)void removeFileParameter(java.lang.String name)
name - a String specifying the name of the file parameter<T> T getAttribute(java.lang.String name)
null if no attribute of the given name exists.T - the generic typename - a String specifying the name of the attributeObject containing the value of the attribute,
or null if the attribute does not existvoid setAttribute(java.lang.String name,
java.lang.Object value)
name - specifying the name of the attributevalue - the Object to be storedjava.util.Enumeration<java.lang.String> getAttributeNames()
Enumeration containing the
names of the attributes available to this request.
This method returns an empty Enumeration
if the request has no attributes available to it.void removeAttribute(java.lang.String name)
name - a String specifying the name of the attribute to removejava.util.Map<java.lang.String,java.lang.Object> getAllAttributes()
void putAllAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes - the specified attributesvoid fillAllAttributes(java.util.Map<java.lang.String,java.lang.Object> targetAttributes)
targetAttributes - the target attribute map to be filledboolean isMaxLengthExceeded()
void setMaxLengthExceeded(boolean maxLengthExceeded)
maxLengthExceeded - whether the max length exceededjava.util.Locale getLocale()
Locale.Localevoid setLocale(java.util.Locale locale)
Locale.locale - a given Localejava.util.TimeZone getTimeZone()
TimeZone.TimeZonevoid setTimeZone(java.util.TimeZone timeZone)
TimeZone.timeZone - a given TimeZoneCopyright © 2008–2018 The Aspectran Project. All rights reserved.