@ManagedObject(value="WebSocket Upgrade Filter") public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter, MappedWebSocketCreator, Dumpable
WebSocketCreator
objects.AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
WebSocketUpgradeFilter(WebSocketPolicy policy) |
WebSocketUpgradeFilter(WebSocketPolicy policy,
ByteBufferPool bufferPool) |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(PathSpec spec,
WebSocketCreator creator) |
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) |
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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public WebSocketUpgradeFilter(WebSocketPolicy policy)
public WebSocketUpgradeFilter(WebSocketPolicy policy, ByteBufferPool bufferPool)
public static WebSocketUpgradeFilter configureContext(ServletContextHandler context)
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
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.