Class ServerHelper

    • Constructor Detail

      • ServerHelper

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

      • 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<Server>
        Throws:
        java.lang.Exception