Package org.apache.camel.console
Interface DevConsole
-
public interface DevConsole
Developer Console
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DevConsole.MediaType
-
Field Summary
Fields Modifier and Type Field Description static String
CONSOLE_GROUP
static String
CONSOLE_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Object
call(DevConsole.MediaType mediaType)
Invokes and gets the output from this console.Object
call(DevConsole.MediaType mediaType, Map<String,Object> options)
Invokes and gets the output from this console.String
getDescription()
Short description of this console.String
getDisplayName()
Display name of this console.String
getGroup()
The group of this console.String
getId()
The ID of this console.boolean
supportMediaType(DevConsole.MediaType mediaType)
Whether this console supports the given media type.
-
-
-
Field Detail
-
CONSOLE_ID
static final String CONSOLE_ID
- See Also:
- Constant Field Values
-
CONSOLE_GROUP
static final String CONSOLE_GROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGroup
String getGroup()
The group of this console.
-
getId
String getId()
The ID of this console.
-
getDisplayName
String getDisplayName()
Display name of this console.
-
getDescription
String getDescription()
Short description of this console.
-
supportMediaType
boolean supportMediaType(DevConsole.MediaType mediaType)
Whether this console supports the given media type.- Parameters:
mediaType
- the media type- Returns:
- true if supported, false if not
-
call
default Object call(DevConsole.MediaType mediaType)
Invokes and gets the output from this console.
-
call
Object call(DevConsole.MediaType mediaType, Map<String,Object> options)
Invokes and gets the output from this console. The options argument can be used to pass information specific to the call. The implementation is responsible to catch and handle any exception thrown by the underlying technology, including unchecked ones.
-
-