org.jboss.arquillian.container.spi.client.protocol.metadata
Class Servlet

java.lang.Object
  extended by org.jboss.arquillian.container.spi.client.protocol.metadata.Servlet

public class Servlet
extends Object

Servlet

Version:
$Revision: $
Author:
Aslak Knutsen, Ian Brandt

Constructor Summary
Servlet(String name, String contextRoot)
           
 
Method Summary
 boolean equals(Object obj)
           
 URI getBaseURI()
          Get the URI to the Servlet's context.
 String getContextRoot()
           
 URI getFullURI()
          Get the URI to the Servlet.
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Servlet

public Servlet(String name,
               String contextRoot)
Method Detail

getName

public String getName()
Returns:
the name

getContextRoot

public String getContextRoot()
Returns:
the contextRoot

getBaseURI

public URI getBaseURI()
Get the URI to the Servlet's context.

Returns:
the base URI, e.g. "http://localhost:8888/"

getFullURI

public URI getFullURI()
Get the URI to the Servlet.

Returns:
the base URI, e.g. "http://localhost:8888/Test"

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Throws:
IllegalStateException - if host is null
See Also:
#setParent(HTTPContext)}, Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Throws:
IllegalStateException - if host is null
See Also:
#setParent(HTTPContext)}, Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.