public class HostSource extends Object implements SourceExpression, AncestorSource, MatchesSource
| Modifier and Type | Field and Description |
|---|---|
static HostSource |
WILDCARD |
| Constructor and Description |
|---|
HostSource(String scheme,
String host,
int port,
String path) |
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeString(String s) |
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
hasPath() |
static boolean |
hostMatches(String hostA,
String hostB) |
boolean |
isWildcard() |
boolean |
matchesOnlyOrigin(SchemeHostPortTriple origin) |
boolean |
matchesSource(Origin origin,
GUID resource) |
boolean |
matchesSource(Origin origin,
URI resource) |
static boolean |
pathMatches(String pathA,
String pathB) |
String |
show() |
static List<String> |
splitBySpec(String s,
char delim) |
public static final HostSource WILDCARD
public boolean hasPath()
public boolean isWildcard()
public boolean matchesSource(@Nonnull Origin origin, @Nonnull GUID resource)
matchesSource in interface MatchesSourcepublic boolean matchesSource(@Nonnull Origin origin, @Nonnull URI resource)
matchesSource in interface MatchesSourcepublic boolean matchesOnlyOrigin(@Nonnull SchemeHostPortTriple origin)
Copyright © 2019. All rights reserved.