|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
busy()
Keeps this request busy. |
int |
commentCount()
Returns the number of comments. |
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<String,String> |
getCommentMap()
Gets a map of comments. |
Connection |
getConnection()
Gets the connection of this request. |
long |
getConnectionTime()
Gets the connection time of this request. |
String |
getHttpRequest()
Gets the HTTP request of this connection. |
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 |
isConnected()
Checks whether the connection is connected. |
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 |
setHttpRequest(String req)
Sets the HTTP request of this connection. |
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 ConnectorExtension
public float getVersion()
ConnectorExtension
getVersion
in interface ConnectorExtension
public int getRedirectPort()
ConnectorExtension
getRedirectPort
in interface ConnectorExtension
public long getConnectionTime()
ConnectorExtension
getConnectionTime
in interface ConnectorExtension
public boolean isConnected()
ConnectorExtension
isConnected
in interface ConnectorExtension
public void connected()
ConnectorExtension
connected
in interface ConnectorExtension
public void busy()
ConnectorExtension
busy
in interface ConnectorExtension
public boolean isKeepConnection()
ConnectorExtension
isKeepConnection
in interface ConnectorExtension
public void setKeepConnection(boolean alive)
ConnectorExtension
setKeepConnection
in interface ConnectorExtension
alive
- true to keep connections alive, false otherwise.public String getHttpRequest()
ConnectorExtension
getHttpRequest
in interface ConnectorExtension
public void setHttpRequest(String req)
ConnectorExtension
setHttpRequest
in interface ConnectorExtension
req
- the HTTP request.public String getComment(String name)
ConnectorExtension
getComment
in interface ConnectorExtension
name
- the name of the comment.
public void setComment(String name, String value)
ConnectorExtension
setComment
in interface ConnectorExtension
name
- the name of the comment.value
- the value of the comment.public boolean containsComment(String name)
ConnectorExtension
containsComment
in interface ConnectorExtension
name
- the name of the comment.
public void removeComment(String name)
ConnectorExtension
removeComment
in interface ConnectorExtension
name
- the name of the comment.public int commentCount()
ConnectorExtension
commentCount
in interface ConnectorExtension
public Map<String,String> getCommentMap()
ConnectorExtension
getCommentMap
in interface ConnectorExtension
public int getStatus()
ConnectorExtension
getStatus
in interface ConnectorExtension
public void setStatus(int code)
ConnectorExtension
setStatus
in interface ConnectorExtension
code
- the status code.public Connection getConnection()
ConnectorExtension
getConnection
in interface ConnectorExtension
public void valueBound(ServletRequestBindingEvent event)
ServletRequestBindingListener
valueBound
in interface ServletRequestBindingListener
valueBound
in class AbstractExtension
event
- the binding event.public void valueUnbound(ServletRequestBindingEvent event)
ServletRequestBindingListener
valueUnbound
in interface ServletRequestBindingListener
valueUnbound
in class AbstractExtension
event
- the binding event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |