|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.communication.PushRequestHandler
public class PushRequestHandler
Handles requests to open a push (bidirectional) communication channel between
the client and the server. After the initial request, communication through
the push channel is managed by PushAtmosphereHandler and
PushHandler
| Constructor Summary | |
|---|---|
PushRequestHandler(VaadinServletService service)
|
|
| Method Summary | |
|---|---|
protected PushHandler |
createPushHandler(VaadinServletService service)
Creates a push handler for this request handler. |
void |
destroy()
|
boolean |
handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Called when a request needs to be handled. |
boolean |
handleSessionExpired(VaadinRequest request,
VaadinResponse response)
Called when the a session expiration has occured and a notification needs to be sent to the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestHandler(VaadinServletService service)
throws ServiceException
ServiceException| Method Detail |
|---|
protected PushHandler createPushHandler(VaadinServletService service)
Create your own request handler and override this method if you want to
customize the PushHandler, e.g. to dynamically decide the suspend
timeout.
service - the vaadin service
public boolean handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
throws java.io.IOException
RequestHandlertrue to indicate that no more request
handlers should be invoked for the request.
Note that request handlers by default do not lock the session. If you are
using VaadinSession or anything inside the VaadinSession you must ensure
the session is locked. This can be done by extending
SynchronizedRequestHandler or by using
VaadinSession.accessSynchronously(Runnable) or
UI.accessSynchronously(Runnable).
handleRequest in interface RequestHandlersession - 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 occurredpublic void destroy()
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 | |||||||||