Interface NamedRoute


public interface NamedRoute
Represents a route-level node in the Camel route model, identified by a route id.

While NamedNode identifies any model node (EIP step, route, etc.) by a generic id, NamedRoute is more specific: it marks a top-level route definition. Implementations expose the route id, an optional description, and the source Resource from which the route was loaded (e.g., a YAML file or an in-memory string).

This interface is used internally by the framework and by management / tooling layers to enumerate routes and map them back to their definition source.

Since:
3.0
See Also:
  • Method Details

    • getRouteId

      String getRouteId()
      Gets the route id.
    • getDescription

      String getDescription()
      Gets the route description.
    • getNodePrefixId

      @Nullable String getNodePrefixId()
      Gets the node prefix id.
    • getEndpointUrl

      String getEndpointUrl()
      Gets the route endpoint url.
    • isCreatedFromTemplate

      boolean isCreatedFromTemplate()
      Is the route created from template;
    • isCreatedFromRest

      boolean isCreatedFromRest()
      Is the route created from Rest DSL
    • getInput

      NamedNode getInput()
      Gets the route input
    • getResource

      Resource getResource()
      Gets the Resource.