public class MockUriInfo extends Object implements javax.ws.rs.core.UriInfo
| Constructor and Description |
|---|
MockUriInfo(URI requestUri) |
MockUriInfo(URI requestUri,
URI baseUri) |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.MultivaluedMap<String,String> |
decodeQuery(String query,
boolean decode) |
static javax.ws.rs.core.UriInfo |
from(String requestUri) |
static javax.ws.rs.core.UriInfo |
from(URI requestUri) |
URI |
getAbsolutePath() |
javax.ws.rs.core.UriBuilder |
getAbsolutePathBuilder() |
URI |
getBaseUri() |
javax.ws.rs.core.UriBuilder |
getBaseUriBuilder() |
List<Object> |
getMatchedResources() |
List<String> |
getMatchedURIs() |
List<String> |
getMatchedURIs(boolean decode) |
String |
getPath() |
String |
getPath(boolean decode) |
javax.ws.rs.core.MultivaluedMap<String,String> |
getPathParameters() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getPathParameters(boolean decode) |
List<javax.ws.rs.core.PathSegment> |
getPathSegments() |
List<javax.ws.rs.core.PathSegment> |
getPathSegments(boolean decode) |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters(boolean decode) |
URI |
getRequestUri() |
javax.ws.rs.core.UriBuilder |
getRequestUriBuilder() |
URI |
relativize(URI uri) |
URI |
resolve(URI uri) |
public MockUriInfo(URI requestUri)
public static javax.ws.rs.core.UriInfo from(String requestUri)
public static javax.ws.rs.core.UriInfo from(URI requestUri)
public URI getBaseUri()
getBaseUri in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.UriBuilder getBaseUriBuilder()
getBaseUriBuilder in interface javax.ws.rs.core.UriInfopublic URI getRequestUri()
getRequestUri in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.UriBuilder getRequestUriBuilder()
getRequestUriBuilder in interface javax.ws.rs.core.UriInfopublic URI getAbsolutePath()
getAbsolutePath in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.UriBuilder getAbsolutePathBuilder()
getAbsolutePathBuilder in interface javax.ws.rs.core.UriInfopublic String getPath()
getPath in interface javax.ws.rs.core.UriInfopublic String getPath(boolean decode)
getPath in interface javax.ws.rs.core.UriInfopublic List<javax.ws.rs.core.PathSegment> getPathSegments()
getPathSegments in interface javax.ws.rs.core.UriInfopublic List<javax.ws.rs.core.PathSegment> getPathSegments(boolean decode)
getPathSegments in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
getQueryParameters in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters(boolean decode)
getQueryParameters in interface javax.ws.rs.core.UriInfopublic URI relativize(URI uri)
relativize in interface javax.ws.rs.core.UriInfopublic static javax.ws.rs.core.MultivaluedMap<String,String> decodeQuery(String query, boolean decode)
public javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters()
getPathParameters in interface javax.ws.rs.core.UriInfopublic javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters(boolean decode)
getPathParameters in interface javax.ws.rs.core.UriInfopublic List<String> getMatchedURIs()
getMatchedURIs in interface javax.ws.rs.core.UriInfopublic List<String> getMatchedURIs(boolean decode)
getMatchedURIs in interface javax.ws.rs.core.UriInfoCopyright © 2010–2020 Airlift. All rights reserved.