|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectorExtension
An interface to a connector 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 |
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. |
Field Detail |
---|
static final String KEY
Method Detail |
---|
String getProvider()
float getVersion()
int getRedirectPort()
long getConnectionTime()
boolean isConnected()
void connected()
void busy()
boolean isKeepConnection()
void setKeepConnection(boolean alive)
alive
- true to keep connections alive, false otherwise.String getHttpRequest()
void setHttpRequest(String req)
req
- the HTTP request.String getComment(String name)
name
- the name of the comment.
void setComment(String name, String value)
name
- the name of the comment.value
- the value of the comment.boolean containsComment(String name)
name
- the name of the comment.
void removeComment(String name)
name
- the name of the comment.int commentCount()
Map<String,String> getCommentMap()
int getStatus()
void setStatus(int code)
code
- the status code.Connection getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |