@ManagedObject(value="WebSocket Upgrade Filter") public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter, MappedWebSocketCreator, Dumpable
WebSocketCreator objects.AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic 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 MappedWebSocketCreatorpublic void destroy()
ContainerLifeCycledestroy in interface Filterdestroy in interface Destroyabledestroy in class ContainerLifeCyclepublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter in interface FilterIOExceptionServletExceptionpublic String dump()
dump in interface Dumpabledump in class ContainerLifeCyclepublic void dump(Appendable out, String indent) throws IOException
dump in interface Dumpabledump in class ContainerLifeCycleIOExceptionpublic WebSocketServerFactory getFactory()
@ManagedAttribute(value="mappings", readonly=true) public PathMappings<WebSocketCreator> getMappings()
getMappings in interface MappedWebSocketCreatorpublic void init(FilterConfig config) throws ServletException
init in interface FilterServletExceptionCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.