|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface WebConnectionServer.ServerGuts
Represents the inner works of a server. An instance of this interface is contained within a WebConnectionServer, which uses its different methods during dispatch.
| Method Summary | |
|---|---|
void |
commit(javax.servlet.http.HttpServletRequest request)
Commits any changes made to the store in this thread that have not been written yet. |
ServerEndpoint |
fromHandle(javax.servlet.http.HttpServletRequest request,
String handle)
Loads a ServerEndpoint object from a given handle. |
ServerEndpoint |
loadServerEndpoint(javax.servlet.http.HttpServletRequest request,
String meta)
Assumed a given request belongs to an existing ServerEndpoint, loads that object. |
ServerEndpoint |
newServerEndpoint(javax.servlet.http.HttpServletRequest request)
For the given HttpServletRequest, create a new server endpoint. |
void |
rollback(javax.servlet.http.HttpServletRequest request)
Commits any changes made to the store in this thread that have not been written yet. |
String |
toHandle(ServerEndpoint bus)
Converts a ServerEndpoint to a unique handle that can be used to persist inner state in a data store |
void |
writeState(javax.servlet.http.HttpServletRequest request,
ServerEndpoint bus,
javax.servlet.http.HttpServletResponse response)
Populate the cookies in a servlet response with whatever data is needed to support the loadServerEndpoint() method in future requests. |
| Method Detail |
|---|
ServerEndpoint loadServerEndpoint(javax.servlet.http.HttpServletRequest request,
String meta)
request - the request that triggers the lookupmeta - the meta-tag from the http request
ServerEndpoint newServerEndpoint(javax.servlet.http.HttpServletRequest request)
request - the request that triggers the creation
void writeState(javax.servlet.http.HttpServletRequest request,
ServerEndpoint bus,
javax.servlet.http.HttpServletResponse response)
throws IOException
bus - the ServerEndpoint to transmitresponse - the response to populate
IOExceptionString toHandle(ServerEndpoint bus)
bus - a non-null ServerEndpoint
ServerEndpoint fromHandle(javax.servlet.http.HttpServletRequest request,
String handle)
handle - the handle that should be used for constructing the object
void commit(javax.servlet.http.HttpServletRequest request)
void rollback(javax.servlet.http.HttpServletRequest request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||