Class WebSocketUpgradeHandlerWrapper
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.handler.AbstractHandler
-
- org.eclipse.jetty.server.handler.AbstractHandlerContainer
-
- org.eclipse.jetty.server.handler.HandlerWrapper
-
- org.eclipse.jetty.websocket.server.WebSocketUpgradeHandlerWrapper
-
- All Implemented Interfaces:
Handler,HandlerContainer,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle,MappedWebSocketCreator
@Deprecated(since="2021-05-27") public class WebSocketUpgradeHandlerWrapper extends HandlerWrapper implements MappedWebSocketCreator
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler
AbstractHandler.ErrorDispatchHandler
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description WebSocketUpgradeHandlerWrapper(ServletContextHandler context)Deprecated.WebSocketUpgradeHandlerWrapper(ServletContextHandler context, ByteBufferPool bufferPool)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddMapping(java.lang.String spec, WebSocketCreator creator)Deprecated.Add a mapping, of a pathspec to a WebSocketCreator.voidaddMapping(PathSpec spec, WebSocketCreator creator)Deprecated.Add a mapping.voidaddMapping(PathSpec spec, WebSocketCreator creator)Deprecated.useaddMapping(PathSpec, WebSocketCreator)instead.WebSocketCreatorgetMapping(java.lang.String target)Deprecated./** Returns the creator for the given path spec.voidhandle(java.lang.String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)Deprecated.Handle a request.booleanremoveMapping(java.lang.String spec)Deprecated.Removes the mapping based on the given path spec.-
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
destroy, getHandler, getHandlers, insertHandler, setHandler
-
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer
findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer
-
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
getServer
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
-
-
-
Constructor Detail
-
WebSocketUpgradeHandlerWrapper
public WebSocketUpgradeHandlerWrapper(ServletContextHandler context)
Deprecated.
-
WebSocketUpgradeHandlerWrapper
public WebSocketUpgradeHandlerWrapper(ServletContextHandler context, ByteBufferPool bufferPool)
Deprecated.
-
-
Method Detail
-
addMapping
public void addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.Description copied from interface:MappedWebSocketCreatorAdd a mapping.- Specified by:
addMappingin interfaceMappedWebSocketCreator- Parameters:
spec- the path spec to usecreator- the creator for the mapping
-
addMapping
@Deprecated public void addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.useaddMapping(PathSpec, WebSocketCreator)instead.Add a mapping.- Specified by:
addMappingin interfaceMappedWebSocketCreator- Parameters:
spec- the path spec to usecreator- the creator for the mapping
-
addMapping
public void addMapping(java.lang.String spec, WebSocketCreator creator)Deprecated.Description copied from interface:MappedWebSocketCreatorAdd a mapping, of a pathspec to a WebSocketCreator.Recognized Path Spec syntaxes
/path/toor/or*.extorservlet|{spec}- Servlet Syntax
^{spec}orregex|{spec}- Regex Syntax
uri-template|{spec}- URI Template (see JSR356 and RFC6570 level 1)
- Specified by:
addMappingin interfaceMappedWebSocketCreator- Parameters:
spec- the path spec to use.creator- the websocket creator for this specific mapping
-
removeMapping
public boolean removeMapping(java.lang.String spec)
Deprecated.Description copied from interface:MappedWebSocketCreatorRemoves the mapping based on the given path spec.- Specified by:
removeMappingin interfaceMappedWebSocketCreator- Parameters:
spec- the path spec to remove (using the same spec syntax as seen inMappedWebSocketCreator.addMapping(String, WebSocketCreator))- Returns:
- true if underlying mapping were altered, false otherwise
-
getMapping
public WebSocketCreator getMapping(java.lang.String target)
Deprecated.Description copied from interface:MappedWebSocketCreator/** Returns the creator for the given path spec.- Specified by:
getMappingin interfaceMappedWebSocketCreator- Parameters:
target- the spec to test for (using the same spec syntax as seen inMappedWebSocketCreator.addMapping(String, WebSocketCreator))- Returns:
- the websocket creator if path spec exists, or null
-
handle
public void handle(java.lang.String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletExceptionDeprecated.Description copied from interface:HandlerHandle a request.- Specified by:
handlein interfaceHandler- Overrides:
handlein classHandlerWrapper- Parameters:
target- The target of the request - either a URI or a name.baseRequest- The original unwrapped request object.request- The request either as theRequestobject or a wrapper of that request. Themethod can be used access the Request object if required.HttpConnection.getCurrentConnection().getHttpChannel().getRequest()response- The response as theResponseobject or a wrapper of that request. Themethod can be used access the Response object if required.HttpConnection.getCurrentConnection().getHttpChannel().getResponse()- Throws:
java.io.IOException- if unable to handle the request or response processingServletException- if unable to handle the request or response due to underlying servlet issue
-
-