public final class Host extends Object implements Serializable
<name>(host name)</name>
<port>(host port)</port>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getName() |
int |
getPort() |
int |
hashCode() |
boolean |
isSet() |
static Host |
loadFromXML(XML xml,
Host defaultHost)
Gets a host from an existing XML.
|
static void |
saveToXML(XML xml,
Host host)
Adds a host to an existing XML.
|
String |
toString() |
Host |
withName(String name) |
Host |
withPort(int port) |
public Host(String name, int port)
public String getName()
public int getPort()
public boolean isSet()
public Host withPort(int port)
public static Host loadFromXML(XML xml, Host defaultHost)
xml
- the XML to get the host fromdefaultHost
- default host if it does not exist in XMLCopyright © 2008–2023 Norconex Inc.. All rights reserved.