|
||||||||||
| 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.connector.chain.AbstractConnectorRequest.ConnectorRequestExtension
protected class AbstractConnectorRequest.ConnectorRequestExtension
The connector extension class.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.spray.connector.chain.ConnectorExtension |
|---|
KEY |
| Constructor Summary | |
|---|---|
AbstractConnectorRequest.ConnectorRequestExtension()
Constructs a new extension. |
|
| Method Summary | |
|---|---|
void |
connected()
Marks this request as connected. |
boolean |
containsComment(String name)
Checks whether a named comment exists. |
String |
getComment(String name)
Gets a named comment. |
Map |
getCommentMap()
Gets a map of comments. |
Connection |
getConnection()
Gets the connection of this request. |
long |
getConnectionTime()
Gets the connection time of this request. |
String |
getProvider()
Gets the provider of this connection. |
int |
getRedirectPort()
Gets the redirect port of this connection. |
int |
getStatus()
Gets the status of the response of this request. |
float |
getVersion()
Gets the version of the protocol. |
boolean |
isKeepConnection()
Checks whether connections should be kept alive. |
void |
removeComment(String name)
Removes a named comment. |
void |
setComment(String name,
String value)
Sets a named comment. |
void |
setKeepConnection(boolean alive)
Sets whether connections should be kept alive. |
void |
setStatus(int code)
Sets the status of the response of this request. |
void |
valueBound(ServletRequestBindingEvent event)
Notifies the object that it is being bound to a 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnectorRequest.ConnectorRequestExtension()
| Method Detail |
|---|
public String getProvider()
ConnectorExtension
getProvider in interface ConnectorExtensionpublic float getVersion()
ConnectorExtension
getVersion in interface ConnectorExtensionpublic int getRedirectPort()
ConnectorExtension
getRedirectPort in interface ConnectorExtensionpublic long getConnectionTime()
ConnectorExtension
getConnectionTime in interface ConnectorExtensionpublic void connected()
ConnectorExtension
connected in interface ConnectorExtensionpublic boolean isKeepConnection()
ConnectorExtension
isKeepConnection in interface ConnectorExtensionpublic void setKeepConnection(boolean alive)
ConnectorExtension
setKeepConnection in interface ConnectorExtensionalive - true to keep connections alive, false otherwise.public String getComment(String name)
ConnectorExtension
getComment in interface ConnectorExtensionname - the name of the comment.
public void setComment(String name,
String value)
ConnectorExtension
setComment in interface ConnectorExtensionname - the name of the comment.value - the value of the comment.public boolean containsComment(String name)
ConnectorExtension
containsComment in interface ConnectorExtensionname - the name of the comment.
public void removeComment(String name)
ConnectorExtension
removeComment in interface ConnectorExtensionname - the name of the comment.public Map getCommentMap()
ConnectorExtension
getCommentMap in interface ConnectorExtensionpublic int getStatus()
ConnectorExtension
getStatus in interface ConnectorExtensionpublic void setStatus(int code)
ConnectorExtension
setStatus in interface ConnectorExtensioncode - the status code.public Connection getConnection()
ConnectorExtension
getConnection in interface ConnectorExtensionpublic void valueBound(ServletRequestBindingEvent event)
ServletRequestBindingListener
valueBound in interface ServletRequestBindingListenervalueBound in class AbstractExtensionevent - the binding event.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 | |||||||||