@ThreadSafe public final class URIX extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
HTTP_STRIP_PATTERN
Pattern to strip scheme and leading/trailing path separators '/' from an HTTP URL.
|
Modifier and Type | Method and Description |
---|---|
static String |
escaped(String string)
Deprecated.
in favour of com.sun.jersey.api.uri.UriComponent.encode().
|
static String |
fragmentStripped(String loc)
Returns the URI stripped of any fragment component.
|
static String |
httpStripped(String loc)
Returns the stripped version of the HTTP URL if it matches HTTP_STRIP_PATTERN, otherwise the original URL.
|
public static final Pattern HTTP_STRIP_PATTERN
@Deprecated public static String escaped(String string)
URLEncoder
public static String fragmentStripped(String loc)
public static final String httpStripped(String loc)