|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.util.servlet.HttpHost
Represents a host computer. The host may in fact be a "virtual" host, one of several on the same physical machine.
| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
HttpHost(javax.servlet.http.HttpServletRequest sreq)
Constructs a host representing the host-specific part of sreq. |
|
HttpHost(String name,
int port)
Constructs a new host named name and on port
port. |
|
| Method Summary | |
String |
getName()
Gets the host name. |
int |
getPort()
Gets the port of this host. |
String |
toString()
Returns a String representation of this host. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public HttpHost(String name,
int port)
name and on port
port.
name - A String host name, for example
"ccm.redhat.com"; see ServletRequest.getServerName(); it cannot be
nullport - An int port number; 8080,
for instance; see ServletRequest.getServerPort(); it must be
greater than 0public HttpHost(javax.servlet.http.HttpServletRequest sreq)
sreq.
sreq - An HttpServletRequest representation
of a request; it cannot be null| Method Detail |
public final String getName()
String naming the host; it cannot be
nullpublic final int getPort()
int port numberpublic String toString()
String representation of this host.
getName() + ":" + getPort() or simply
getName() if the port is 80
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||