public class ReferenceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(Reference resourceRef,
boolean isProxied,
Request request)
Returns the request URI.
|
static Reference |
getOriginalRef(Reference resourceRef,
Series<Header> headers)
Returns the original reference especially by detecting potential proxy forwardings.
|
static Reference |
update(Reference resourceRef,
Request request)
Returns the request URI.
|
public static Reference update(Reference resourceRef, Request request)
resourceRef
- The resource reference.request
- The parent request.public static java.lang.String format(Reference resourceRef, boolean isProxied, Request request)
resourceRef
- The resource reference.isProxied
- Indicates if the request goes through a proxy and requires an
absolute URI.request
- The parent request.public static Reference getOriginalRef(Reference resourceRef, Series<Header> headers)
resourceRef
- The request's resource reference.headers
- The set of request's headers.Copyright © 2005-2024 Restlet.