public class HostnamePort extends Object
Constructor and Description |
---|
HostnamePort(String hostnamePort) |
HostnamePort(String host,
int port) |
HostnamePort(String host,
int portFrom,
int portTo) |
Modifier and Type | Method and Description |
---|---|
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) |
public HostnamePort(String hostnamePort) throws IllegalArgumentException
IllegalArgumentException
public HostnamePort(String host, int port)
public HostnamePort(String host, int portFrom, int portTo)
public String getHost()
public int[] getPorts()
public int getPort()
public boolean isRange()
public boolean matches(URI toMatch)
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.