|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.SynchronizedRequestHandler
com.vaadin.server.communication.UidlRequestHandler
public class UidlRequestHandler
Processes a UIDL request from the client.
Uses ServerRpcHandler to execute client-to-server RPC invocations and
UidlWriter to write state changes and client RPC calls back to the
client.
| Field Summary | |
|---|---|
static java.lang.String |
UIDL_PATH
|
| Constructor Summary | |
|---|---|
UidlRequestHandler()
|
|
| Method Summary | |
|---|---|
protected boolean |
canHandleRequest(VaadinRequest request)
Check whether a request may be handled by this handler. |
protected void |
closeJsonMessage(java.io.Writer outWriter)
|
protected ServerRpcHandler |
createRpcHandler()
Creates the ServerRpcHandler to use |
boolean |
handleSessionExpired(VaadinRequest request,
VaadinResponse response)
Called when the a session expiration has occured and a notification needs to be sent to the user. |
protected void |
openJsonMessage(java.io.Writer outWriter,
VaadinResponse response)
Writes the opening of JSON message to be sent to client. |
boolean |
synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Identical to SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed. |
| Methods inherited from class com.vaadin.server.SynchronizedRequestHandler |
|---|
handleRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.server.RequestHandler |
|---|
handleRequest |
| Field Detail |
|---|
public static final java.lang.String UIDL_PATH
| Constructor Detail |
|---|
public UidlRequestHandler()
| Method Detail |
|---|
protected ServerRpcHandler createRpcHandler()
protected boolean canHandleRequest(VaadinRequest request)
SynchronizedRequestHandlertrue which means that all requests will be handled by
calling
SynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
with the session locked.
canHandleRequest in class SynchronizedRequestHandlerrequest - the request to handle
true if the request handling should continue once
the session has been locked; false if there's no
need to lock the session since the request would still not be
handled.
public boolean synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
throws java.io.IOException
SynchronizedRequestHandlerSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed.
synchronizedHandleRequest in class SynchronizedRequestHandlersession - The session for the requestrequest - The request to handleresponse - The response object to which a response can be written.
java.io.IOException - If an IO error occurredSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
protected void closeJsonMessage(java.io.Writer outWriter)
throws java.io.IOException
java.io.IOException
protected void openJsonMessage(java.io.Writer outWriter,
VaadinResponse response)
throws java.io.IOException
outWriter - response -
java.io.IOException
public boolean handleSessionExpired(VaadinRequest request,
VaadinResponse response)
throws java.io.IOException
SessionExpiredHandlertrue to indicate that no more
SessionExpiredHandler handlers should be invoked for the request.
handleSessionExpired in interface SessionExpiredHandlerrequest - The request to handleresponse - The response object to which a response can be written.
java.io.IOException - If an IO error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||