Class HTTPContext
- 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 Summary
Constructors Constructor Description HTTPContext(String host, int port)HTTPContext(String host, int port, boolean secure)HTTPContext(String name, String host, int port)HTTPContext(String name, String host, int port, boolean secure)Creates a new HTTP context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPContextadd(Servlet servlet)StringgetHost()intgetPort()StringgetScheme()Returns the scheme used for the connection.ServletgetServletByName(String name)List<Servlet>getServlets()StringtoString()-
Methods inherited from class org.jboss.arquillian.container.spi.client.protocol.metadata.NamedContext
getName
-
-
-
-
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, boolean secure)
Creates a new HTTP context.- Parameters:
name- the name for the contexthost- the host for the contextport- the port for the contextsecure- whether this is a secure context.truewill 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
-
add
public HTTPContext add(Servlet servlet)
-
getScheme
public String getScheme()
Returns the scheme used for the connection.- Returns:
- the scheme used for the connection
-
-