org.apache.cxf.transport.websocket.jetty
Class JettyWebSocketServletDestination
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractDestination
org.apache.cxf.transport.AbstractMultiplexDestination
org.apache.cxf.transport.http.AbstractHTTPDestination
org.apache.cxf.transport.servlet.ServletDestination
org.apache.cxf.transport.websocket.jetty.JettyWebSocketServletDestination
- All Implemented Interfaces:
- Configurable, Assertor, Destination, DestinationWithEndpoint, MultiplexDestination, Observable, WebSocketDestinationService, org.eclipse.jetty.websocket.WebSocketFactory.Acceptor
public class JettyWebSocketServletDestination
- extends ServletDestination
- implements WebSocketDestinationService, org.eclipse.jetty.websocket.WebSocketFactory.Acceptor
Fields inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
bus, certConstraints, contextMatchStrategy, cproviderFactory, CXF_ASYNC_CONTEXT, CXF_CONTINUATION_MESSAGE, enableWebSocket, fixedParameterOrder, HTTP_CONFIG, HTTP_CONTEXT, HTTP_CONTEXT_MATCH_STRATEGY, HTTP_REQUEST, HTTP_RESPONSE, isServlet3, multiplexWithAddress, path, registry, REQUEST_REDIRECTED, RESPONSE_COMMITED, RESPONSE_HEADERS_COPIED, serverPolicy, SERVICE_REDIRECTION |
Method Summary |
boolean |
checkOrigin(javax.servlet.http.HttpServletRequest arg0,
String arg1)
|
org.eclipse.jetty.websocket.WebSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
String protocol)
|
void |
invoke(javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
invokeInternal(javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
shutdown()
Shutdown the Destination, i.e. |
Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination |
activate, assertMessage, canAssert, contextMatchOnExact, deactivate, finalizeConfig, flushHeaders, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invokeComplete, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromContinuation, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupContinuation, setupMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyWebSocketServletDestination
public JettyWebSocketServletDestination(Bus bus,
DestinationRegistry registry,
EndpointInfo ei,
String path)
throws IOException
- Throws:
IOException
invoke
public void invoke(javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
- Overrides:
invoke
in class AbstractHTTPDestination
- Throws:
IOException
invokeInternal
public void invokeInternal(javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
- Specified by:
invokeInternal
in interface WebSocketDestinationService
- Throws:
IOException
checkOrigin
public boolean checkOrigin(javax.servlet.http.HttpServletRequest arg0,
String arg1)
- Specified by:
checkOrigin
in interface org.eclipse.jetty.websocket.WebSocketFactory.Acceptor
doWebSocketConnect
public org.eclipse.jetty.websocket.WebSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
String protocol)
- Specified by:
doWebSocketConnect
in interface org.eclipse.jetty.websocket.WebSocketFactory.Acceptor
shutdown
public void shutdown()
- Description copied from class:
AbstractDestination
- Shutdown the Destination, i.e. stop accepting incoming messages.
- Specified by:
shutdown
in interface Destination
- Overrides:
shutdown
in class AbstractHTTPDestination
Apache CXF