Class ServerHolder


  • public class ServerHolder
    extends Object
    Holds Jetty Server with additional metadata information. Used by various extensions to extract server URLs.
    Since:
    2.0
    • Method Detail

      • getServer

        public org.eclipse.jetty.server.Server getServer()
      • getContext

        public String getContext()
      • getConnectorsCount

        public int getConnectorsCount()
      • getUrl

        public String getUrl()
        Returns a URL of the service assuming there is a single connector. If connector count is not equal to one, an exception is thrown.
      • getConnector

        public ConnectorHolder getConnector()
        Returns the single ConnectorHolder. If connector count is not equal to one, an exception is thrown.