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, suspend
public 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.RestRegistry
public void removeRestService(org.apache.camel.Consumer consumer)
removeRestService
in interface org.apache.camel.spi.RestRegistry
public List<org.apache.camel.spi.RestRegistry.RestService> listAllRestServices()
listAllRestServices
in interface org.apache.camel.spi.RestRegistry
public int size()
size
in interface org.apache.camel.spi.RestRegistry
public String apiDocAsJson()
apiDocAsJson
in interface org.apache.camel.spi.RestRegistry
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel