Class HTTPContext

    • Constructor Detail

      • HTTPContext

        public HTTPContext​(String host,
                           int port)
      • HTTPContext

        public HTTPContext​(String host,
                           int port,
                           boolean secure)
      • HTTPContext

        public HTTPContext​(String name,
                           String host,
                           int port)
      • HTTPContext

        public HTTPContext​(String name,
                           String host,
                           int port,
                           boolean secure)
        Creates a new HTTP context.
        Parameters:
        name - the name for the context
        host - the host for the context
        port - the port for the context
        secure - whether this is a secure context. true will result in a https scheme, otherwise http will be used for the scheme
    • Method Detail

      • getHost

        public String getHost()
        Returns:
        the ip
      • getPort

        public int getPort()
        Returns:
        the port
      • getServlets

        public List<Servlet> getServlets()
        Returns:
        the servlets
      • getServletByName

        public Servlet getServletByName​(String name)
      • getScheme

        public String getScheme()
        Returns the scheme used for the connection.
        Returns:
        the scheme used for the connection