public class RoutesResource extends CamelChildResourceSupport
| Constructor and Description |
|---|
RoutesResource(CamelContextResource contextResource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDot()
Returns the Graphviz DOT Visualisation of
the current Camel routes
|
String |
getError() |
RouteResource |
getRoute(String id)
Looks up an individual route
|
RouteResource |
getRoute(String id,
String language)
Looks up an individual route with specified language
|
RoutesDefinition |
getRouteDefinitions()
Returns the routes currently active within this context
|
List<Route> |
getRoutes() |
RouteStatusResource |
getRouteStatus(String id) |
javax.ws.rs.core.Response |
postRouteForm(javax.ws.rs.core.UriInfo uriInfo,
String language,
String body)
Creates a new route using form encoded data from a web form
|
getCamelContext, getContextResource, getDefaultTypeConverter, getTemplatepublic RoutesResource(CamelContextResource contextResource)
public RoutesDefinition getRouteDefinitions()
public String getDot() throws IOException
IOExceptionpublic RouteResource getRoute(String id)
public RouteResource getRoute(String id, String language)
public RouteStatusResource getRouteStatus(String id)
public javax.ws.rs.core.Response postRouteForm(@Context
javax.ws.rs.core.UriInfo uriInfo,
String language,
String body)
throws URISyntaxException
language - is the edited language used on this routebody - the route definition contentURISyntaxExceptionpublic String getError()
Apache CAMEL