Class DefaultProtocolInterceptor
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereInterceptorAdapter
-
- org.apache.cxf.transport.websocket.atmosphere.DefaultProtocolInterceptor
-
- All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereInterceptor,org.atmosphere.inject.AtmosphereConfigAware,org.atmosphere.interceptor.InvokationOrder
public class DefaultProtocolInterceptor extends org.atmosphere.cpr.AtmosphereInterceptorAdapterDefaultProtocolInterceptor provides the default CXF's WebSocket protocol that uses. This interceptor is automatically engaged when no atmosphere interceptor is configured.
-
-
Constructor Summary
Constructors Constructor Description DefaultProtocolInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.atmosphere.cpr.AtmosphereConfig config)protected org.atmosphere.cpr.AtmosphereRequestcreateAtmosphereRequest(org.atmosphere.cpr.AtmosphereRequest r, byte[] data)Creates a virtual request using the specified parent request and the actual data.protected byte[]createResponse(org.atmosphere.cpr.AtmosphereResponse response, byte[] payload, boolean parent)Creates a response data based on the specified payload.DefaultProtocolInterceptorexcludedheaders(String p)DefaultProtocolInterceptorincludedheaders(String p)org.atmosphere.cpr.Actioninspect(org.atmosphere.cpr.AtmosphereResource r)voidsetExcludedheaders(Pattern excludedheaders)voidsetIncludedheaders(Pattern includedheaders)
-
-
-
Method Detail
-
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
- Specified by:
configurein interfaceorg.atmosphere.inject.AtmosphereConfigAware- Overrides:
configurein classorg.atmosphere.cpr.AtmosphereInterceptorAdapter
-
includedheaders
public DefaultProtocolInterceptor includedheaders(String p)
-
setIncludedheaders
public void setIncludedheaders(Pattern includedheaders)
-
excludedheaders
public DefaultProtocolInterceptor excludedheaders(String p)
-
setExcludedheaders
public void setExcludedheaders(Pattern excludedheaders)
-
inspect
public org.atmosphere.cpr.Action inspect(org.atmosphere.cpr.AtmosphereResource r)
- Specified by:
inspectin interfaceorg.atmosphere.cpr.AtmosphereInterceptor- Overrides:
inspectin classorg.atmosphere.cpr.AtmosphereInterceptorAdapter
-
createAtmosphereRequest
protected org.atmosphere.cpr.AtmosphereRequest createAtmosphereRequest(org.atmosphere.cpr.AtmosphereRequest r, byte[] data) throws IOExceptionCreates a virtual request using the specified parent request and the actual data.- Parameters:
r-data-- Returns:
- Throws:
IOException
-
createResponse
protected byte[] createResponse(org.atmosphere.cpr.AtmosphereResponse response, byte[] payload, boolean parent)Creates a response data based on the specified payload.- Parameters:
response-payload-parent-- Returns:
-
-