@ManagedObject(value="WebSocket Upgrade Filter") public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter, MappedWebSocketCreator, Dumpable
WebSocketCreator objects.AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.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() |
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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic static final String CONTEXT_ATTRIBUTE_KEY
public WebSocketUpgradeFilter()
public WebSocketUpgradeFilter(WebSocketPolicy policy, ByteBufferPool bufferPool)
public static WebSocketUpgradeFilter configureContext(ServletContextHandler context) throws ServletException
ServletExceptionpublic static WebSocketUpgradeFilter configureContext(ServletContext context) throws ServletException
ServletExceptionpublic void addMapping(PathSpec spec, WebSocketCreator creator)
addMapping in interface MappedWebSocketCreatorpublic void destroy()
destroy 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 FilterServletExceptionpublic void setToAttribute(ServletContext context, String key) throws ServletException
ServletExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.