|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.filter.chain.AbstractExtension
org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest.ProtocolRequestExtension
protected class AbstractProtocolRequest.ProtocolRequestExtension
The protocol extension class.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.spray.protocol.chain.ProtocolExtension |
|---|
KEY |
| Constructor Summary | |
|---|---|
AbstractProtocolRequest.ProtocolRequestExtension()
Constructs a new extension. |
|
| 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. |
void |
valueUnbound(ServletRequestBindingEvent event)
Notifies the object that it is being unbound from a request. |
| Methods inherited from class org.norther.tammi.spray.filter.chain.AbstractExtension |
|---|
getFilterChain, getFilteredRequest, getFilteredResponse, isBound, valueBound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractProtocolRequest.ProtocolRequestExtension()
| Method Detail |
|---|
public void drain()
ProtocolExtension
drain in interface ProtocolExtensionpublic String getPathTail()
ProtocolExtension
getPathTail in interface ProtocolExtensionpublic boolean isRedirection()
ProtocolExtension
isRedirection in interface ProtocolExtensionpublic void setRedirection(boolean flag)
ProtocolExtension
setRedirection in interface ProtocolExtensionflag - true if a redirection, otherwise false.public String getRedirectionURL()
ProtocolExtension
getRedirectionURL in interface ProtocolExtensionpublic void setRedirectionURL(String url)
ProtocolExtension
setRedirectionURL in interface ProtocolExtensionurl - the redirection URL.public String getMultipartHeader(String name)
ProtocolExtension
getMultipartHeader in interface ProtocolExtensionname - the name of the header.
public String getPartialContentType()
ProtocolExtension
getPartialContentType in interface ProtocolExtensionpublic String getPartialCharacterEncoding()
ProtocolExtension
getPartialCharacterEncoding in interface ProtocolExtensionpublic String getFormDataFileName()
ProtocolExtension
getFormDataFileName in interface ProtocolExtensionpublic void setFormDataFileName(String path)
ProtocolExtension
setFormDataFileName in interface ProtocolExtensionpath - the form-data file name or path.
public InputStream getNextInputStream()
throws IOException
ProtocolExtensionCalling this method can affect other methods returning values included in the body of the request.
getNextInputStream in interface ProtocolExtensionIOException - on errors.public boolean isAbsoluteURLLinks()
ProtocolExtension
isAbsoluteURLLinks in interface ProtocolExtensionpublic boolean isPathInfoParsed()
ProtocolExtension
isPathInfoParsed in interface ProtocolExtensionpublic StringBuilder getLinkedURL(String location)
ProtocolExtensionIf 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.
getLinkedURL in interface ProtocolExtensionlocation - the encoded location of the link.
public StringBuilder getLinkedURL(String location,
boolean absolute)
ProtocolExtension
getLinkedURL in interface ProtocolExtensionlocation - the encoded location of the link.absolute - true for an absolute URL, false for a relative one.
public StringBuilder getLinkedURL(String location,
OrderedMap info)
ProtocolExtensionApplied parameters from linked key filters are added to the URL parameter map, if any.
getLinkedURL in interface ProtocolExtensionlocation - the encoded location of the link.info - a map of unencoded URL parameters.
public StringBuilder getLinkedURL(String location,
boolean absolute,
OrderedMap info)
ProtocolExtension
getLinkedURL in interface ProtocolExtensionlocation - the encoded location of the link.absolute - true for an absolute URL, false for a relative one.info - a map of unencoded URL parameters.
public StringBuilder getRedirectedURL(boolean secure)
ProtocolExtension
getRedirectedURL in interface ProtocolExtensionsecure - true for a secure link, false otherwise.
public StringBuilder getRedirectedURL(String location)
ProtocolExtensionIf 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.
getRedirectedURL in interface ProtocolExtensionlocation - the encoded location of the link.
public StringBuilder getRedirectedURL(String location,
OrderedMap info)
ProtocolExtensionApplied parameters from linked key filters are added to the URL parameter map, if any.
getRedirectedURL in interface ProtocolExtensionlocation - the encoded location of the link.info - a map of unencoded URL parameters.
public StringBuilder getRedirectedURL(String location,
boolean secure)
ProtocolExtension
getRedirectedURL in interface ProtocolExtensionlocation - the encoded location of the link.secure - true for a secure link, false otherwise.
public StringBuilder getRedirectedURL(String location,
boolean secure,
OrderedMap info)
ProtocolExtensionApplied parameters from linked key filters are added to the URL parameter map, if any.
getRedirectedURL in interface ProtocolExtensionlocation - the encoded location of the link.secure - true for a secure link, false otherwise.info - a map of unencoded URL parameters.
public StringBuilder getRedirectedURL(String host,
int port,
String location,
boolean secure)
ProtocolExtension
getRedirectedURL in interface ProtocolExtensionhost - 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.
public StringBuilder getRedirectedURL(String host,
int port,
String location,
boolean secure,
OrderedMap info)
ProtocolExtensionApplied parameters from linked key filters are added to the URL parameter map, if any.
getRedirectedURL in interface ProtocolExtensionhost - 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.
public boolean isNoCache()
ProtocolExtension
isNoCache in interface ProtocolExtensionpublic void setNoCache(boolean flag)
ProtocolExtension
setNoCache in interface ProtocolExtensionflag - true if caching is disabled, false if enabled.public Principal getUserPrincipal()
ProtocolExtension
getUserPrincipal in interface ProtocolExtensionpublic HttpSession registerUserPrincipal(Principal principal)
ProtocolExtension
registerUserPrincipal in interface ProtocolExtensionprincipal - the autheticated principal.
public void valueUnbound(ServletRequestBindingEvent event)
ServletRequestBindingListener
valueUnbound in interface ServletRequestBindingListenervalueUnbound in class AbstractExtensionevent - the binding event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||