Class UpgradeProcessorExternal

  • All Implemented Interfaces:
    java.lang.AutoCloseable, WebConnection, Processor

    public class UpgradeProcessorExternal
    extends UpgradeProcessorBase
    Upgrade processor for external (Servlet-based) upgrade handlers.
    • Constructor Detail

      • UpgradeProcessorExternal

        public UpgradeProcessorExternal​(SocketWrapperBase<?> wrapper,
                                        UpgradeToken upgradeToken,
                                        UpgradeGroupInfo upgradeGroupInfo)
        Constructs a new UpgradeProcessorExternal.
        Parameters:
        wrapper - the socket wrapper
        upgradeToken - the upgrade token
        upgradeGroupInfo - the group info for statistics
    • Method Detail

      • recycle

        public void recycle()
        Description copied from class: UpgradeProcessorBase
        Recycle the processor, ready for the next request which may be on the same connection or a different connection.

        Upgrade processors are not recycled and re-used. This method is only used to trigger any necessary clean-up once the upgrade processor is no longer required.

        Specified by:
        recycle in interface Processor
        Overrides:
        recycle in class UpgradeProcessorBase
      • close

        public void close()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • dispatch

        public final AbstractEndpoint.Handler.SocketState dispatch​(SocketEvent status)
        Description copied from class: AbstractProcessorLight
        Process an in-progress request that is no longer in standard HTTP mode. Uses currently include Servlet 3.0 Async and HTTP upgrade connections. Further uses may be added in the future. These will typically start as HTTP requests.
        Specified by:
        dispatch in class AbstractProcessorLight
        Parameters:
        status - The event to process
        Returns:
        The state the caller should put the socket in when this method returns
      • setSslSupport

        public final void setSslSupport​(SSLSupport sslSupport)
        Description copied from interface: Processor
        Set the SSL information for this HTTP connection.
        Parameters:
        sslSupport - The SSL support object to use for this connection
      • pause

        public void pause()
        Description copied from interface: Processor
        Informs the processor that the underlying I/O layer has stopped accepting new connections. This is primarily intended to enable processors that use multiplexed connections to prevent further 'streams' being added to an existing multiplexed connection.