com.sun.enterprise.util
Class HostAndPort
java.lang.Object
com.sun.enterprise.util.HostAndPort
public class HostAndPort
- extends java.lang.Object
Represents a host and a port in a convenient package that also
accepts a convenient constructor.
|
Constructor Summary |
HostAndPort(HostAndPort rhs)
|
HostAndPort(java.lang.String str)
Construct a new HostAndPort from a string of the form "host:port". |
HostAndPort(java.lang.String host,
int port)
|
HostAndPort(java.lang.String host,
int port,
boolean secure)
Construct a HostAndPort object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HostAndPort
public HostAndPort(java.lang.String host,
int port,
boolean secure)
- Construct a HostAndPort object.
- Parameters:
host - the host nameport - the port numbersecure - does this host require a secure (SSL) connection?
HostAndPort
public HostAndPort(HostAndPort rhs)
HostAndPort
public HostAndPort(java.lang.String host,
int port)
HostAndPort
public HostAndPort(java.lang.String str)
- Construct a new HostAndPort from a string of the form "host:port".
- Parameters:
str - string of the form "host:port"
isSecure
public boolean isSecure()
getHost
public java.lang.String getHost()
getPort
public int getPort()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 GlassFish Community. All Rights Reserved.