public abstract class RemoteEventServiceServlet extends RemoteServiceServlet implements EventExecutorService
EventExecutorService
as a servlet
and can be used to add events via the server side.perThreadRequest, perThreadResponse
Constructor and Description |
---|
RemoteEventServiceServlet() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Domain aDomain,
Event anEvent)
Adds an event for all users
|
void |
addEventUserSpecific(Event anEvent)
Adds an event for a specific user
|
protected void |
checkPermutationStrongName()
This method is overridden because applications with various GWT versions got a
SecurityException |
EventFilter |
getEventFilter(Domain aDomain)
Returns the EventFilter for the user domain combination.
|
protected javax.servlet.http.HttpServletRequest |
getRequest()
Returns the current request.
|
boolean |
isUserRegistered()
Checks if the user is registered for event listening.
|
boolean |
isUserRegistered(Domain aDomain)
Checks if the user is registered for event listening.
|
void |
removeEventFilter(Domain aDomain)
Removes the
EventFilter of the domain. |
void |
setEventFilter(Domain aDomain,
EventFilter anEventFilter)
Changes the
EventFilter for the user-domain combination. |
doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public RemoteEventServiceServlet()
public boolean isUserRegistered()
isUserRegistered
in interface EventExecutorService
public boolean isUserRegistered(Domain aDomain)
isUserRegistered
in interface EventExecutorService
aDomain
- domain to check the registration for the userpublic void addEvent(Domain aDomain, Event anEvent)
addEvent
in interface EventExecutorService
aDomain
- the domain to add the eventanEvent
- event to addpublic void addEventUserSpecific(Event anEvent)
addEventUserSpecific
in interface EventExecutorService
anEvent
- event to addpublic void setEventFilter(Domain aDomain, EventFilter anEventFilter)
EventFilter
for the user-domain combination.
The EventFilter
can be removed with the method
EventExecutorService.removeEventFilter(de.novanic.eventservice.client.event.domain.Domain)
or when that method is called with NULL as the EventFilter
parameter value.setEventFilter
in interface EventExecutorService
aDomain
- domain to set the EventFilter
anEventFilter
- new EventFilter
public EventFilter getEventFilter(Domain aDomain)
getEventFilter
in interface EventExecutorService
aDomain
- domainpublic void removeEventFilter(Domain aDomain)
EventFilter
of the domain.removeEventFilter
in interface EventExecutorService
aDomain
- domain to drop the EventFilter
fromprotected javax.servlet.http.HttpServletRequest getRequest()
protected void checkPermutationStrongName() throws SecurityException
SecurityException
checkPermutationStrongName
in class RemoteServiceServlet
SecurityException
Copyright © 2012. All Rights Reserved.