public class DefaultRestRegistry extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.StaticService, org.apache.camel.spi.RestRegistry, org.apache.camel.CamelContextAware
| Constructor and Description |
|---|
DefaultRestRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestService(org.apache.camel.Consumer consumer,
String url,
String baseUrl,
String basePath,
String uriTemplate,
String method,
String consumes,
String produces,
String inType,
String outType,
String routeId,
String description) |
String |
apiDocAsJson() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
List<org.apache.camel.spi.RestRegistry.RestService> |
listAllRestServices() |
void |
removeRestService(org.apache.camel.Consumer consumer) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
int |
size() |
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic DefaultRestRegistry()
public void addRestService(org.apache.camel.Consumer consumer, String url, String baseUrl, String basePath, String uriTemplate, String method, String consumes, String produces, String inType, String outType, String routeId, String description)
addRestService in interface org.apache.camel.spi.RestRegistrypublic void removeRestService(org.apache.camel.Consumer consumer)
removeRestService in interface org.apache.camel.spi.RestRegistrypublic List<org.apache.camel.spi.RestRegistry.RestService> listAllRestServices()
listAllRestServices in interface org.apache.camel.spi.RestRegistrypublic int size()
size in interface org.apache.camel.spi.RestRegistrypublic String apiDocAsJson()
apiDocAsJson in interface org.apache.camel.spi.RestRegistrypublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwareprotected void doStart() throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionApache Camel