|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.appenginefan.toolkit.common.WebConnectionServer
public class WebConnectionServer
Manages the peristence of server-side endpoints for a WebConnectionClient, and the execution of incoming requests.
| Nested Class Summary | |
|---|---|
static interface |
WebConnectionServer.Receiver
Represents the receiving end of a communication |
static interface |
WebConnectionServer.ServerGuts
Represents the inner works of a server. |
| Constructor Summary | |
|---|---|
WebConnectionServer(WebConnectionServer.ServerGuts server)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
dispatch(WebConnectionServer.Receiver receiver,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Dispatches an incoming request. |
ServerEndpoint |
fromHandle(javax.servlet.http.HttpServletRequest request,
String handle)
Loads a ServerEndpoint object from a given handle. |
static WebConnectionServer |
fromPeristence(Persistence<byte[]> persistence)
Factory-method; creates a server based on a binary store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebConnectionServer(WebConnectionServer.ServerGuts server)
server - the server guts being wrapped. Must not be null.| Method Detail |
|---|
public static WebConnectionServer fromPeristence(Persistence<byte[]> persistence)
persistence - the storage algorithm for binary data
public final boolean dispatch(WebConnectionServer.Receiver receiver,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOException
public ServerEndpoint fromHandle(javax.servlet.http.HttpServletRequest request,
String handle)
handle - the handle that should be used for constructing the object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||