public abstract class MessageParameters extends Object
MessageParameter
s that can be used for a request.Constructor and Description |
---|
MessageParameters() |
Modifier and Type | Method and Description |
---|---|
abstract Collection<MessagePathParameter<?>> |
getPathParameters()
Returns the collection of
MessagePathParameter that the request supports. |
abstract Collection<MessageQueryParameter<?>> |
getQueryParameters()
Returns the collection of
MessageQueryParameter that the request supports. |
boolean |
isResolved()
Returns whether all mandatory parameters have been resolved.
|
static String |
resolveUrl(String genericUrl,
MessageParameters parameters)
Resolves the given URL (e.g "jobs/:jobid") using the given path/query parameters.
|
public abstract Collection<MessagePathParameter<?>> getPathParameters()
MessagePathParameter
that the request supports. The
collection should not be modifiable.public abstract Collection<MessageQueryParameter<?>> getQueryParameters()
MessageQueryParameter
that the request supports. The
collection should not be modifiable.public final boolean isResolved()
public static String resolveUrl(String genericUrl, MessageParameters parameters)
This method will fail with an IllegalStateException
if any mandatory parameter was
not resolved.
Unresolved optional parameters will be ignored.
genericUrl
- URL to resolveparameters
- message parameters parametersIllegalStateException
- if any mandatory parameter was not resolvedCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.