@ManagedObject(value="WebSocket Upgrade Filter") public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter, MappedWebSocketCreator, Dumpable
WebSocketCreator
objects.AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_ATTRIBUTE_KEY |
Constructor and Description |
---|
WebSocketUpgradeFilter() |
WebSocketUpgradeFilter(WebSocketPolicy policy,
ByteBufferPool bufferPool) |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(PathSpec spec,
WebSocketCreator creator) |
static WebSocketUpgradeFilter |
configureContext(ServletContext context) |
static WebSocketUpgradeFilter |
configureContext(ServletContextHandler context) |
void |
destroy()
Destroys the managed Destroyable beans in the reverse order they were added.
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
String |
dump() |
void |
dump(Appendable out,
String indent) |
WebSocketServerFactory |
getFactory() |
PathMappings<WebSocketCreator> |
getMappings() |
void |
init(FilterConfig config) |
void |
setToAttribute(ServletContext context,
String key) |
String |
toString() |
addBean, addBean, addBean, addEventListener, addManaged, contains, doStart, doStop, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public static final String CONTEXT_ATTRIBUTE_KEY
public WebSocketUpgradeFilter()
public WebSocketUpgradeFilter(WebSocketPolicy policy, ByteBufferPool bufferPool)
public static WebSocketUpgradeFilter configureContext(ServletContextHandler context) throws ServletException
ServletException
public static WebSocketUpgradeFilter configureContext(ServletContext context) throws ServletException
ServletException
public void addMapping(PathSpec spec, WebSocketCreator creator)
addMapping
in interface MappedWebSocketCreator
public void destroy()
ContainerLifeCycle
destroy
in interface Filter
destroy
in interface Destroyable
destroy
in class ContainerLifeCycle
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public String dump()
dump
in interface Dumpable
dump
in class ContainerLifeCycle
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
dump
in class ContainerLifeCycle
IOException
public WebSocketServerFactory getFactory()
@ManagedAttribute(value="mappings", readonly=true) public PathMappings<WebSocketCreator> getMappings()
getMappings
in interface MappedWebSocketCreator
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void setToAttribute(ServletContext context, String key) throws ServletException
ServletException
Copyright © 1995-2016 Webtide. All Rights Reserved.