Class URLEndpointListener

  • public class URLEndpointListener
    extends Object
    • Constructor Detail

      • URLEndpointListener

        public URLEndpointListener​(@NonNull
                                   URLEndpointListenerConfiguration config)
        Create a URLEndpointListener with the passed configuration.
        config - the listener configuration.
    • Method Detail

      • getPort

        public int getPort()
        Get the listener's port. This method will return a value of -1 except between the time the listener is started and the time it is stopped.

        When a listener is configured with the port number 0, the return value from this function will give the port at which the listener is actually listening.

        the listener's port, or -1.
      • getUrls

        public List<URI> getUrls()
        Get the list of URIs for the listener.
        a list of listener URIs.
      • getStatus

        public ConnectionStatus getStatus()
        Get the listener status.
        listener status.
      • getTlsIdentity

        public TLSIdentity getTlsIdentity()
        Get the TLS identity used by the listener.
        TLS identity.
      • stop

        public void stop()
        Stop the listener.