R - The routepublic interface RouteMatch<R> extends Callable<R>, Predicate<HttpRequest>, RouteInfo<R>
Route that is executable.EMPTY| Modifier and Type | Method and Description |
|---|---|
default boolean |
accept(MediaType contentType)
Deprecated.
Use
doesConsume(MediaType) instead. |
default R |
call()
Same as
execute(). |
RouteMatch<R> |
decorate(Function<RouteMatch<R>,R> executor)
Decorates the execution of the route with the given executor.
|
boolean |
doesConsume(MediaType contentType)
Whether the specified content type is an accepted type.
|
boolean |
doesProduce(Collection<MediaType> acceptableTypes)
Whether the route does produce any of the given types.
|
boolean |
doesProduce(MediaType acceptableType)
Whether the route does produce any of the given types.
|
default R |
execute()
Execute the route with the given values.
|
R |
execute(Map<String,Object> argumentValues)
Execute the route with the given values.
|
default boolean |
explicitAccept(MediaType contentType)
Deprecated.
Use
explicitlyConsumes(MediaType) instead |
default boolean |
explicitlyConsumes(MediaType contentType)
Whether the specified content type is explicitly an accepted type.
|
RouteMatch<R> |
fulfill(Map<String,Object> argumentValues)
Returns a new
RouteMatch fulfilling arguments required by this route to execute. |
Optional<Argument<?>> |
getBodyArgument() |
Class<?> |
getDeclaringType()
The declaring type of the route.
|
List<MediaType> |
getProduces()
The media types able to produced by this route.
|
default Collection<Argument> |
getRequiredArguments()
Returns the required arguments for this RouteMatch.
|
Optional<Argument<?>> |
getRequiredInput(String name)
Return whether the given named input is required by this route.
|
ReturnType<? extends R> |
getReturnType() |
Map<String,Object> |
getVariableValues() |
default boolean |
isExecutable() |
default boolean |
isRequiredInput(String name)
Return whether the given named input is required by this route.
|
default boolean |
isSatisfied(String name)
Is the given input satisfied.
|
isAsync, isAsyncOrReactive, isCompletable, isReactive, isSingleResult, isSpecifiedSingle, isSuspended, isVoidfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationClass<?> getDeclaringType()
Map<String,Object> getVariableValues()
R execute(Map<String,Object> argumentValues)
getRequiredArguments().argumentValues - The argument valuesRouteMatch<R> fulfill(Map<String,Object> argumentValues)
RouteMatch fulfilling arguments required by this route to execute. The new route will not
return the given arguments from the getRequiredArguments() method.argumentValues - The argument valuesRouteMatch<R> decorate(Function<RouteMatch<R>,R> executor)
executor - The executorOptional<Argument<?>> getRequiredInput(String name)
name - The name of the inputOptional<Argument<?>> getBodyArgument()
List<MediaType> getProduces()
MediaType that this route can producedefault Collection<Argument> getRequiredArguments()
Returns the required arguments for this RouteMatch.
ReturnType<? extends R> getReturnType()
getReturnType in interface RouteInfo<R>default R execute()
getRequiredArguments() this method will throw an IllegalArgumentException.default boolean isExecutable()
execute()default boolean isRequiredInput(String name)
name - The name of the inputboolean doesConsume(@Nullable
MediaType contentType)
contentType - The content typeboolean doesProduce(@Nullable
Collection<MediaType> acceptableTypes)
acceptableTypes - The acceptable typesboolean doesProduce(@Nullable
MediaType acceptableType)
acceptableType - The acceptable typedefault boolean explicitlyConsumes(@Nullable
MediaType contentType)
contentType - The content type@Deprecated default boolean explicitAccept(@Nullable MediaType contentType)
explicitlyConsumes(MediaType) insteadcontentType - The content typedefault boolean isSatisfied(String name)
name - The name of the input@Deprecated default boolean accept(@Nullable MediaType contentType)
doesConsume(MediaType) instead.contentType - The content type