|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProtocolExtension
An interface to a protocol specific extension of a servlet request. It is saved as a request attribute using its class name.
| Field Summary | |
|---|---|
static String |
KEY
The extension key. |
| Method Summary | |
|---|---|
void |
drain()
Drains a HTTP/1.1 request. |
String |
getFormDataFileName()
Gets the file name of a form-data part. |
StringBuilder |
getLinkedURL(String location)
Gets a URL link to the specified location. |
StringBuilder |
getLinkedURL(String location,
boolean absolute)
Gets an optionally absolute URL link to the specified location. |
StringBuilder |
getLinkedURL(String location,
boolean absolute,
OrderedMap info)
Gets an optionally absolute URL link to the specified location with additional URL parameters. |
StringBuilder |
getLinkedURL(String location,
OrderedMap info)
Gets a URL link to the specified location with additional URL parameters. |
String |
getMultipartHeader(String name)
Gets the value of a named multipart header. |
InputStream |
getNextInputStream()
Returns an input stream for reading the body of the next part of a multipart request. |
String |
getPartialCharacterEncoding()
Gets the character encoding of the current multipart stream. |
String |
getPartialContentType()
Gets the content type of the current multipart stream. |
String |
getPathTail()
Gets the tail of the path info without parsed and requested parameters. |
StringBuilder |
getRedirectedURL(boolean secure)
Gets a redirected URL link, which is either secure or non-secure. |
StringBuilder |
getRedirectedURL(String location)
Gets a redirected URL link to the specified location. |
StringBuilder |
getRedirectedURL(String location,
boolean secure)
Gets a redirected URL link, which is either secure or non-secure. |
StringBuilder |
getRedirectedURL(String location,
boolean secure,
OrderedMap info)
Gets a redirected URL link with additional URL parameters, which is either secure or non-secure. |
StringBuilder |
getRedirectedURL(String host,
int port,
String location,
boolean secure)
Gets a redirected URL link to a specific host and/or port, which is either secure or non-secure. |
StringBuilder |
getRedirectedURL(String host,
int port,
String location,
boolean secure,
OrderedMap info)
Gets a redirected URL link with additional URL parameters to the specified host and/or port, which is either secure or non-secure. |
StringBuilder |
getRedirectedURL(String location,
OrderedMap info)
Gets a redirected URL link with additional URL parameters. |
String |
getRedirectionURL()
Gets the redirection URL of this request. |
Principal |
getUserPrincipal()
Gets the authenticated principal that is registered to the session of this request. |
boolean |
isAbsoluteURLLinks()
Gets the absolute URL links option. |
boolean |
isNoCache()
Checks whether caching of pages in clients is on or off. |
boolean |
isPathInfoParsed()
Gets the path info to be parsed as parameters option. |
boolean |
isRedirection()
Checks whether this request is a redirection. |
HttpSession |
registerUserPrincipal(Principal principal)
Registers the authenticated principal to the session of this request. |
void |
setFormDataFileName(String path)
Sets the file name of a form-data part. |
void |
setNoCache(boolean flag)
Sets whether caching of pages in clients is on or off. |
void |
setRedirection(boolean flag)
Sets whether this request is a redirection. |
void |
setRedirectionURL(String url)
Sets the redirection URL of this request. |
| Field Detail |
|---|
static final String KEY
| Method Detail |
|---|
void drain()
String getPathTail()
boolean isRedirection()
void setRedirection(boolean flag)
flag - true if a redirection, otherwise false.String getRedirectionURL()
void setRedirectionURL(String url)
url - the redirection URL.String getMultipartHeader(String name)
name - the name of the header.
String getPartialContentType()
String getPartialCharacterEncoding()
String getFormDataFileName()
void setFormDataFileName(String path)
path - the form-data file name or path.
InputStream getNextInputStream()
throws IOException
Calling this method can affect other methods returning values included in the body of the request.
IOException - on errors.boolean isAbsoluteURLLinks()
boolean isPathInfoParsed()
StringBuilder getLinkedURL(String location)
If the location is an absolute URL, it is converted into a string buffer as such.
An absolute path is appended to the context URL of the current request. The authority component is included if URL links are configured to be absolute.
A relative path is appended to the context URL after the path info parameters of linked key filters or before the corresponding query string parameters depending on the configuration.
location - the encoded location of the link.
StringBuilder getLinkedURL(String location,
boolean absolute)
location - the encoded location of the link.absolute - true for an absolute URL, false for a relative one.
StringBuilder getLinkedURL(String location,
OrderedMap info)
Applied parameters from linked key filters are added to the URL parameter map, if any.
location - the encoded location of the link.info - a map of unencoded URL parameters.
StringBuilder getLinkedURL(String location,
boolean absolute,
OrderedMap info)
location - the encoded location of the link.absolute - true for an absolute URL, false for a relative one.info - a map of unencoded URL parameters.
StringBuilder getRedirectedURL(boolean secure)
secure - true for a secure link, false otherwise.
StringBuilder getRedirectedURL(String location)
If the location is an absolute URL, it is converted into a string buffer as such.
An absolute path is appended to the servlet URL of the current request.
A relative path is appended to the servlet URL after the path info parameters of linked key filters or before the corresponding query string parameters depending on the configuration.
location - the encoded location of the link.
StringBuilder getRedirectedURL(String location,
OrderedMap info)
Applied parameters from linked key filters are added to the URL parameter map, if any.
location - the encoded location of the link.info - a map of unencoded URL parameters.
StringBuilder getRedirectedURL(String location,
boolean secure)
location - the encoded location of the link.secure - true for a secure link, false otherwise.
StringBuilder getRedirectedURL(String location,
boolean secure,
OrderedMap info)
Applied parameters from linked key filters are added to the URL parameter map, if any.
location - the encoded location of the link.secure - true for a secure link, false otherwise.info - a map of unencoded URL parameters.
StringBuilder getRedirectedURL(String host,
int port,
String location,
boolean secure)
host - the optional server name of the link.port - the port number of the link (0 for current).location - the encoded location of the link.secure - true for a secure link, false otherwise.
StringBuilder getRedirectedURL(String host,
int port,
String location,
boolean secure,
OrderedMap info)
Applied parameters from linked key filters are added to the URL parameter map, if any.
host - the optional server name of the link.port - the port number of the link (0 for current).location - the encoded location of the link.secure - true for a secure link, false otherwise.info - a map of unencoded URL parameters.
boolean isNoCache()
void setNoCache(boolean flag)
flag - true if caching is disabled, false if enabled.Principal getUserPrincipal()
HttpSession registerUserPrincipal(Principal principal)
principal - the autheticated principal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||