public class AtmosphereFilter extends Object implements com.sun.jersey.spi.container.ResourceFilterFactory
ResourceFilterFactory
which intercept the response and appropriately
set the AtmosphereResourceEvent
filed based on the annotation the application
has defined.Modifier and Type | Class and Description |
---|---|
protected static class |
AtmosphereFilter.Action |
class |
AtmosphereFilter.Filter
TODO: Fix that messy class.
|
Modifier and Type | Field and Description |
---|---|
static String |
INJECTED_BROADCASTER |
static String |
RESUME_CANDIDATES |
static String |
RESUME_UUID |
protected javax.servlet.http.HttpServletRequest |
servletReq |
static String |
SUSPENDED_RESOURCE |
Constructor and Description |
---|
AtmosphereFilter() |
Modifier and Type | Method and Description |
---|---|
List<com.sun.jersey.spi.container.ResourceFilter> |
create(com.sun.jersey.api.model.AbstractMethod am)
Create a
ResourceFilter which contains the information about the
annotation being processed. |
protected long |
translateTimeUnit(long period,
TimeUnit tu) |
public static final String SUSPENDED_RESOURCE
public static final String RESUME_UUID
public static final String RESUME_CANDIDATES
public static final String INJECTED_BROADCASTER
@Context protected javax.servlet.http.HttpServletRequest servletReq
public List<com.sun.jersey.spi.container.ResourceFilter> create(com.sun.jersey.api.model.AbstractMethod am)
ResourceFilter
which contains the information about the
annotation being processed.
XXX Need to filter invalid mix of annotation.create
in interface com.sun.jersey.spi.container.ResourceFilterFactory
am
- an AbstractMethod
ResourceFilter
to invoke.protected long translateTimeUnit(long period, TimeUnit tu)
Copyright © 2016. All rights reserved.