Class HttpServerHelper

  • Direct Known Subclasses:
    HttpsServerHelper

    @Deprecated
    public class HttpServerHelper
    extends ServerConnectionHelper
    Deprecated.
    Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.
    HTTP server helper based on NIO blocking sockets.
    • Constructor Detail

      • HttpServerHelper

        public HttpServerHelper​(Server server)
        Deprecated.
        Constructor.
        Parameters:
        server - The server to help.
      • HttpServerHelper

        public HttpServerHelper​(Server server,
                                Protocol protocol)
        Deprecated.
        Constructor.
        Parameters:
        server - The server to help.
        protocol - The protocol supported.
    • Method Detail

      • canHandle

        protected boolean canHandle​(Connection<Server> connection,
                                    Response response)
                             throws java.io.IOException
        Deprecated.
        Description copied from class: ServerConnectionHelper
        Indicates if the connection can handle the given response at this point in time.
        Specified by:
        canHandle in class ServerConnectionHelper
        Parameters:
        connection - The parent connection.
        response - The response to handle.
        Returns:
        True if the connection can handle the given response at this point in time.
        Throws:
        java.io.IOException
      • createInboundWay

        public InboundWay createInboundWay​(Connection<Server> connection,
                                           int bufferSize)
        Deprecated.
        Description copied from class: ConnectionHelper
        Creates an inbound way for the given connection.
        Specified by:
        createInboundWay in class ConnectionHelper<Server>
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
        Returns:
        The inbound way created.
      • createRequest

        public Request createRequest​(Connection<Server> connection,
                                     java.lang.String methodName,
                                     java.lang.String resourceUri,
                                     java.lang.String protocol)
        Deprecated.
        Description copied from class: ServerConnectionHelper
        Creates a new request.
        Specified by:
        createRequest in class ServerConnectionHelper
        Parameters:
        connection - The associated connection.
        methodName - The method name.
        resourceUri - The target resource URI.
        protocol - The protocol name and version.
        Returns:
        The created request.