|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RestRegistry
A registry of all REST services running within the CamelContext which have been defined and created
using the Rest DSL.
| Nested Class Summary | |
|---|---|
static interface |
RestRegistry.RestService
Details about the REST service |
| Method Summary | |
|---|---|
void |
addRestService(Consumer consumer,
String url,
String baseUrl,
String basePath,
String uriTemplate,
String method,
String consumes,
String produces,
String inType,
String outType)
Adds a new REST service to the registry. |
List<RestRegistry.RestService> |
listAllRestServices()
List all REST services from this registry. |
void |
removeRestService(Consumer consumer)
Removes the REST service from the registry |
int |
size()
Number of rest services in the registry. |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Method Detail |
|---|
void addRestService(Consumer consumer,
String url,
String baseUrl,
String basePath,
String uriTemplate,
String method,
String consumes,
String produces,
String inType,
String outType)
consumer - the consumerurl - the absolute url of the REST servicebaseUrl - the base url of the REST servicebasePath - the base pathuriTemplate - the uri templatemethod - the HTTP methodconsumes - optional details about what media-types the REST service acceptsproduces - optional details about what media-types the REST service returnsinType - optional detail input binding to a FQN class nameoutType - optional detail output binding to a FQN class namevoid removeRestService(Consumer consumer)
consumer - the consumerList<RestRegistry.RestService> listAllRestServices()
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||