Class 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.
    • Constructor Detail

      • DefaultProtocolInterceptor

        public DefaultProtocolInterceptor()
    • Method Detail

      • 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
      • setIncludedheaders

        public void setIncludedheaders​(Pattern includedheaders)
      • 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: