public abstract class HostMatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static HostMatcher |
ACCEPT_ALL |
protected java.lang.String |
pathRegex |
protected int |
port |
| Constructor and Description |
|---|
HostMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
setPathRegex(java.lang.String pathRegex) |
void |
setPort(int port) |
abstract java.lang.String |
toString() |
boolean |
validate(java.net.URI uri) |
public static final HostMatcher ACCEPT_ALL
protected int port
protected java.lang.String pathRegex
public boolean validate(java.net.URI uri)
throws java.net.UnknownHostException,
java.net.SocketException,
java.net.MalformedURLException
java.net.UnknownHostExceptionjava.net.SocketExceptionjava.net.MalformedURLExceptionpublic void setPort(int port)
public void setPathRegex(java.lang.String pathRegex)
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object