|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.helpers.HostnamePort
public class HostnamePort
Represents a hostname and port, optionally with a port range. Examples: myhost, myhost:1234, myhost:1234-1240, :1234, :1234-1240
Constructor Summary | |
---|---|
HostnamePort(String hostnamePort)
|
|
HostnamePort(String host,
int port)
|
|
HostnamePort(String host,
int portFrom,
int portTo)
|
Method Summary | |
---|---|
String |
getHost()
The host part, or null if not given. |
String |
getHost(String defaultHost)
|
int |
getPort()
The first port, or 0 if no port was given. |
int[] |
getPorts()
The port range as two ints. |
boolean |
isRange()
|
boolean |
matches(URI toMatch)
|
String |
toString()
|
String |
toString(String defaultHost)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HostnamePort(String hostnamePort) throws IllegalArgumentException
IllegalArgumentException
public HostnamePort(String host, int port)
public HostnamePort(String host, int portFrom, int portTo)
Method Detail |
---|
public String getHost()
public String getHost(String defaultHost)
public int[] getPorts()
public int getPort()
public boolean isRange()
public String toString()
toString
in class Object
public String toString(String defaultHost)
public boolean matches(URI toMatch)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |