Class ServerHelper

    • Constructor Detail

      • ServerHelper

        public ServerHelper​(org.restlet.Server server)
        Constructor.
        Parameters:
        server - The client to help.
    • Method Detail

      • handle

        public void handle​(org.restlet.Request request,
                           org.restlet.Response response)
        Handles a call by invoking the helped Server's Server.handle(Request, Response) method.
        Overrides:
        handle in class RestletHelper<org.restlet.Server>
        Parameters:
        request - The request to handle.
        response - The response to update.
      • setEphemeralPort

        public void setEphemeralPort​(int localPort)
        Sets the ephemeral port in the attributes map if necessary.
        Parameters:
        localPort - The ephemeral local port.
      • setEphemeralPort

        public void setEphemeralPort​(java.net.ServerSocket socket)
        Sets the ephemeral port in the attributes map if necessary.
        Parameters:
        socket - The bound server socket.
      • stop

        public void stop()
                  throws java.lang.Exception
        Description copied from class: RestletHelper
        Stop callback.
        Overrides:
        stop in class ConnectorHelper<org.restlet.Server>
        Throws:
        java.lang.Exception