public class DefaultProtocolInterceptor
extends org.atmosphere.cpr.AtmosphereInterceptorAdapter
Constructor and Description |
---|
DefaultProtocolInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.atmosphere.cpr.AtmosphereConfig config) |
protected org.atmosphere.cpr.AtmosphereRequest |
createAtmosphereRequest(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.
|
DefaultProtocolInterceptor |
excludedheaders(String p) |
DefaultProtocolInterceptor |
includedheaders(String p) |
org.atmosphere.cpr.Action |
inspect(org.atmosphere.cpr.AtmosphereResource r) |
void |
setExcludedheaders(Pattern excludedheaders) |
void |
setIncludedheaders(Pattern includedheaders) |
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
configure
in interface org.atmosphere.inject.AtmosphereConfigAware
configure
in class org.atmosphere.cpr.AtmosphereInterceptorAdapter
public DefaultProtocolInterceptor includedheaders(String p)
public void setIncludedheaders(Pattern includedheaders)
public DefaultProtocolInterceptor excludedheaders(String p)
public void setExcludedheaders(Pattern excludedheaders)
public org.atmosphere.cpr.Action inspect(org.atmosphere.cpr.AtmosphereResource r)
inspect
in interface org.atmosphere.cpr.AtmosphereInterceptor
inspect
in class org.atmosphere.cpr.AtmosphereInterceptorAdapter
protected org.atmosphere.cpr.AtmosphereRequest createAtmosphereRequest(org.atmosphere.cpr.AtmosphereRequest r, byte[] data) throws IOException
r
- data
- IOException
protected byte[] createResponse(org.atmosphere.cpr.AtmosphereResponse response, byte[] payload, boolean parent)
response
- payload
- parent
- Apache CXF