java.lang.Object
org.jboss.arquillian.container.spi.client.protocol.metadata.NamedContext
org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext

public class HTTPContext extends NamedContext
WebContext
Version:
$Revision: $
Author:
Aslak Knutsen, Ian Brandt
  • Constructor Details

    • 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 Details

    • getHost

      public String getHost()
      Returns:
      the ip
    • getPort

      public int getPort()
      Returns:
      the port
    • add

      public HTTPContext add(Servlet servlet)
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object