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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.
     
     
    org.atmosphere.cpr.Action
    inspect(org.atmosphere.cpr.AtmosphereResource r)
     
    void
    setExcludedheaders(Pattern excludedheaders)
     
    void
    setIncludedheaders(Pattern includedheaders)
     

    Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorAdapter

    destroy, postInspect, priority, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultProtocolInterceptor

      public DefaultProtocolInterceptor()
  • Method Details

    • configure

      public void configure(org.atmosphere.cpr.AtmosphereConfig config)
      Specified by:
      configure in interface org.atmosphere.inject.AtmosphereConfigAware
      Overrides:
      configure in class org.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:
      inspect in interface org.atmosphere.cpr.AtmosphereInterceptor
      Overrides:
      inspect in class org.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: