public class RequestUriMapper
extends java.lang.Object
HttpEndpoints of a Application.| Constructor and Description |
|---|
RequestUriMapper(org.continuity.idpa.application.Application application) |
| Modifier and Type | Method and Description |
|---|---|
org.continuity.idpa.application.HttpEndpoint |
map(java.lang.String uri,
java.lang.String method)
Maps the specified URI to an
HttpEndpoint that has the same URI. |
org.continuity.idpa.application.HttpEndpoint |
mapExactly(java.lang.String uri,
java.lang.String method)
Maps the specified URI to an
HttpEndpoint that has exactly the same URI. |
org.continuity.idpa.application.HttpEndpoint |
mapRespectingWildcards(java.lang.String uri,
java.lang.String method)
Maps the specified URI to an
HttpEndpoint that has the same URI, respecting
wildcards. |
public RequestUriMapper(org.continuity.idpa.application.Application application)
public org.continuity.idpa.application.HttpEndpoint mapExactly(java.lang.String uri,
java.lang.String method)
HttpEndpoint that has exactly the same URI. Wildcards
({some-name}) are treated as any other element of the URI. Hence, if you pass
/a/uri/with/{id}, an interface with /a/uri/with/{ident} will
not match.uri - The URI to be mapped.method - The request method.HttpEndpoint that has exactly the same URI or null if there is no
such interface.public org.continuity.idpa.application.HttpEndpoint mapRespectingWildcards(java.lang.String uri,
java.lang.String method)
HttpEndpoint that has the same URI, respecting
wildcards. That is, if you pass /a/uri/with/12345, /a/uri/with/{id}
will match.uri - The URI to be mapped.method - The request method.HttpEndpoint with the same URI or null if there is no such
interface.public org.continuity.idpa.application.HttpEndpoint map(java.lang.String uri,
java.lang.String method)
HttpEndpoint that has the same URI. First, the URI is
tested for exact similarity (by calling mapExactly(String, String) and then, if there is not
exact match, wildcards are respected (by calling mapRespectingWildcards(String, String).uri - The URI to be mapped.method - The request method.HttpEndpoint with the same URI or null if there is no such
interface.