com.sun.grizzly.cometd.standalone
Class CometdAdapter
java.lang.Object
com.sun.grizzly.tcp.StaticResourcesAdapter
com.sun.grizzly.tcp.http11.GrizzlyAdapter
com.sun.grizzly.cometd.standalone.CometdAdapter
- All Implemented Interfaces:
- Adapter
public class CometdAdapter
- extends GrizzlyAdapter
Standalone Cometd implementation. This class is used when Cometd is enabled
from the Grizzly standalone WebServer. To enable it, just add:
-Dcom.sun.grizzly.adapterClass=com.sun.grizzly.cometd.standalone.CometdAdapter
- Author:
- Jeanfrancois Arcand
Methods inherited from class com.sun.grizzly.tcp.http11.GrizzlyAdapter |
afterService, afterService, destroy, isAllowEncodedSlash, isDecodeURL, isHandleStaticResources, service, setAllowEncodedSlash, setDecodeUrl, setHandleStaticResources, start |
Methods inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter |
addRootFolder, customizedErrorPage, getDefaultContentType, getResourcesContextPath, getRootFolder, getRootFolders, initWebDir, isUseSendFile, service, setDefaultContentType, setLogger, setResourcesContextPath, setRootFolder, setUseSendFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMETD_REQUEST
public static final String COMETD_REQUEST
- See Also:
- Constant Field Values
COMETD_RESPONSE
public static final String COMETD_RESPONSE
- See Also:
- Constant Field Values
CometdAdapter
public CometdAdapter()
CometdAdapter
public CometdAdapter(PublishInterceptor publishInterceptor)
service
public void service(GrizzlyRequest request,
GrizzlyResponse response)
- Route the request to the cometd implementation. If the request point to
a static file, delegate the call to the Grizzly WebServer implementation.
- Specified by:
service
in class GrizzlyAdapter
- Parameters:
request
- The GrizzlyRequest
response
- The GrizzlyResponse
getContextPath
public String getContextPath()
- Return the comet context path used by this Adapter. By default, it return
"/cometd"
setContextPath
public void setContextPath(String contextPath)
- Set the comet context path.
Copyright © 2012 Oracle Corporation. All Rights Reserved.