public class UriPathMerger extends Object
Constructor and Description |
---|
UriPathMerger() |
Modifier and Type | Method and Description |
---|---|
URI |
merge(URI destinationUri,
URI requestUri)
Merges two
URI paths, checking that both URIs have the same scheme, host and port. |
@Nonnull public URI merge(@Nonnull URI destinationUri, @Nullable URI requestUri) throws DestinationPathsNotMergeableException
URI
paths, checking that both URIs
have the same scheme, host and port.destinationUri
- The URI
pointing to the destination.requestUri
- The URI
identifying the request.URI
, representing the given request executed on the given destination.DestinationPathsNotMergeableException
- If either of the request paths of the the given URIs are null
or the URIs differ in the used
schema, host, or port.Copyright © 2020 SAP SE. All rights reserved.