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.AtmosphereInterceptorAdapter
DefaultProtocolInterceptor provides the default CXF's WebSocket protocol that uses.
This interceptor is automatically engaged when no atmosphere interceptor is configured.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.atmosphere.interceptor.InvokationOrder
org.atmosphere.interceptor.InvokationOrder.PRIORITY -
Field Summary
Fields inherited from interface org.atmosphere.interceptor.InvokationOrder
AFTER_DEFAULT, BEFORE_DEFAULT, FIRST_BEFORE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(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.org.atmosphere.cpr.Actioninspect(org.atmosphere.cpr.AtmosphereResource r) voidsetExcludedheaders(Pattern excludedheaders) voidsetIncludedheaders(Pattern includedheaders) Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorAdapter
destroy, postInspect, priority, toString
-
Constructor Details
-
DefaultProtocolInterceptor
public DefaultProtocolInterceptor()
-
-
Method Details
-
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config) - Specified by:
configurein interfaceorg.atmosphere.inject.AtmosphereConfigAware- Overrides:
configurein classorg.atmosphere.cpr.AtmosphereInterceptorAdapter
-
includedheaders
-
setIncludedheaders
-
excludedheaders
-
setExcludedheaders
-
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 IOException Creates 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:
-