java.lang.Object
org.openprovenance.prov.service.core.rest.ForwardedUriInfo
- All Implemented Interfaces:
jakarta.ws.rs.core.UriInfo
Custom implementation of
UriInfo that is aware of
X-Forwarded-For HTTP header.
The class is mutable and NOT thread-safe.
- Version:
- $Id: ForwardedUriInfo.java 2226 2012-11-13 08:27:20Z guard $
- Author:
- Yegor Bugayenko (yegor@tpc2.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForwardedUriInfo(jakarta.ws.rs.core.UriInfo inf, AtomicReference<jakarta.ws.rs.core.HttpHeaders> hdrs) Public ctor. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.UriBuilderjakarta.ws.rs.core.UriBuildergetMatchedURIs(boolean decode) getPath()getPath(boolean decode) getPathParameters(boolean decode) List<jakarta.ws.rs.core.PathSegment> List<jakarta.ws.rs.core.PathSegment> getPathSegments(boolean decode) getQueryParameters(boolean decode) jakarta.ws.rs.core.UriBuilderrelativize(URI uri)
-
Constructor Details
-
ForwardedUriInfo
public ForwardedUriInfo(jakarta.ws.rs.core.UriInfo inf, AtomicReference<jakarta.ws.rs.core.HttpHeaders> hdrs) Public ctor.- Parameters:
inf- The original UriInfohdrs- HTTP headers
-
-
Method Details
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfacejakarta.ws.rs.core.UriInfo
-
getAbsolutePathBuilder
public jakarta.ws.rs.core.UriBuilder getAbsolutePathBuilder()- Specified by:
getAbsolutePathBuilderin interfacejakarta.ws.rs.core.UriInfo
-
getBaseUri
- Specified by:
getBaseUriin interfacejakarta.ws.rs.core.UriInfo
-
getBaseUriBuilder
public jakarta.ws.rs.core.UriBuilder getBaseUriBuilder()- Specified by:
getBaseUriBuilderin interfacejakarta.ws.rs.core.UriInfo
-
getRequestUri
- Specified by:
getRequestUriin interfacejakarta.ws.rs.core.UriInfo
-
getRequestUriBuilder
public jakarta.ws.rs.core.UriBuilder getRequestUriBuilder()- Specified by:
getRequestUriBuilderin interfacejakarta.ws.rs.core.UriInfo
-
getMatchedResources
-
getMatchedURIs
-
getMatchedURIs
-
getPath
- Specified by:
getPathin interfacejakarta.ws.rs.core.UriInfo
-
getPath
- Specified by:
getPathin interfacejakarta.ws.rs.core.UriInfo
-
getPathParameters
-
getPathParameters
-
getPathSegments
- Specified by:
getPathSegmentsin interfacejakarta.ws.rs.core.UriInfo
-
getPathSegments
- Specified by:
getPathSegmentsin interfacejakarta.ws.rs.core.UriInfo
-
getQueryParameters
-
getQueryParameters
-
resolve
-
relativize
-