public class RouteBuilderImpl extends Object implements RouteBuilder, RouteDescriptorAccessor
RouteBuilder.RouteBuilderRouteBuilder.OnMethods, RouteBuilder.TargetEndpoint| Modifier and Type | Field and Description |
|---|---|
private RouteDescriptor |
routeDescriptor |
| Constructor and Description |
|---|
RouteBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Route |
build()
Builds a
Route using the information gathered from this builder. |
private Set<Class<? extends Throwable>> |
exceptions(Class<?>... exceptions) |
RouteBuilder.OnMethods |
from(String path)
Specifies the request path that the
Route will handle request from. |
RouteDescriptor |
getRouteDescriptor() |
RouteBuilder.TargetEndpoint |
on(Class<? extends Throwable> exception,
Class<?>... exceptions)
Specifies that this route should be able to handle any of the types of exceptions passed-in.
|
String |
toString() |
private final RouteDescriptor routeDescriptor
public RouteBuilder.OnMethods from(String path)
RouteBuilderRoute will handle request from.from in interface RouteBuilderpath - the request path that the Route will handle request from.RouteBuilder.OnMethods which enables further specialization of the types of requests that can be handled by the
Route.public Route build()
RouteBuilderRoute using the information gathered from this builder.build in interface RouteBuilderRoute a Route instance configured by the this builder.public RouteBuilder.TargetEndpoint on(Class<? extends Throwable> exception, Class<?>... exceptions)
RouteBuilderon in interface RouteBuilderexception - a single class of type, or subtype, Throwable.exceptions - zero or more classes of type, or subtypes, of Throwable.RouteBuilder.TargetEndpoint to enable further configuration of the route, such as specifying the target class and
method that will be called when the exception(s) are thrown.public RouteDescriptor getRouteDescriptor()
getRouteDescriptor in interface RouteDescriptorAccessorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.