Apache CXF API

org.apache.cxf.transport.websocket.jetty
Class JettyWebSocketDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractObservable
      extended by org.apache.cxf.transport.AbstractDestination
          extended by org.apache.cxf.transport.AbstractMultiplexDestination
              extended by org.apache.cxf.transport.http.AbstractHTTPDestination
                  extended by org.apache.cxf.transport.http_jetty.JettyHTTPDestination
                      extended by org.apache.cxf.transport.websocket.jetty.JettyWebSocketDestination
All Implemented Interfaces:
Configurable, Assertor, Destination, DestinationWithEndpoint, MultiplexDestination, Observable, WebSocketDestinationService, org.eclipse.jetty.websocket.WebSocketFactory.Acceptor

public class JettyWebSocketDestination
extends JettyHTTPDestination
implements WebSocketDestinationService, org.eclipse.jetty.websocket.WebSocketFactory.Acceptor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
AbstractHTTPDestination.BackChannelConduit, AbstractHTTPDestination.PrincipalAuthorizationPolicy
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
AbstractDestination.AbstractBackChannelConduit
 
Field Summary
 
Fields inherited from class org.apache.cxf.transport.http_jetty.JettyHTTPDestination
engine, loader, nurl, serverEngineFactory, servletContext
 
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
 
Fields inherited from class org.apache.cxf.transport.AbstractDestination
endpointInfo, reference
 
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
 
Constructor Summary
JettyWebSocketDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory)
           
 
Method Summary
 boolean checkOrigin(javax.servlet.http.HttpServletRequest arg0, String arg1)
           
protected  JettyHTTPHandler createJettyHTTPHandler(JettyHTTPDestination jhd, boolean cmExact)
           
 org.eclipse.jetty.websocket.WebSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest request, String protocol)
           
protected  String getAddress(EndpointInfo endpointInfo)
           
protected  String getBasePath(String contextPath)
           
 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_jetty.JettyHTTPDestination
activate, deactivate, doService, doService, finalizeConfig, flushHeaders, getBasePathForFullAddress, getEngine, getLogger, invokeComplete, retrieveEngine, retrieveFromContinuation, setServletContext, setupContinuation
 
Methods inherited from class org.apache.cxf.transport.http.AbstractHTTPDestination
assertMessage, canAssert, contextMatchOnExact, flushHeaders, getAddressValue, getAddressValue, getAddressWithId, getBeanName, getBus, getContextMatchStrategy, getId, getInbuiltBackChannel, getPath, getServer, invoke, isFixedParameterOrder, isMultiplexWithAddress, isOneWay, releaseRegistry, retrieveFromServlet3Async, setContextMatchStrategy, setFixedParameterOrder, setMultiplexWithAddress, setServer, setupMessage
 
Methods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel, getEndpointInfo
 
Methods inherited from class org.apache.cxf.transport.AbstractObservable
getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.transport.Destination
getAddress, getBackChannel, getMessageObserver
 
Methods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
 

Constructor Detail

JettyWebSocketDestination

public JettyWebSocketDestination(Bus bus,
                                 DestinationRegistry registry,
                                 EndpointInfo ei,
                                 JettyHTTPServerEngineFactory serverEngineFactory)
                          throws IOException
Throws:
IOException
Method Detail

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

getAddress

protected String getAddress(EndpointInfo endpointInfo)
Overrides:
getAddress in class JettyHTTPDestination

getBasePath

protected String getBasePath(String contextPath)
                      throws IOException
Overrides:
getBasePath in class AbstractHTTPDestination
Throws:
IOException

createJettyHTTPHandler

protected JettyHTTPHandler createJettyHTTPHandler(JettyHTTPDestination jhd,
                                                  boolean cmExact)
Overrides:
createJettyHTTPHandler in class JettyHTTPDestination

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 API

Apache CXF