@Metadata(label="verifiers", enums="parameters,connectivity") public class RestComponent extends DefaultComponent implements VerifiableComponent
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
RestComponent() |
Modifier and Type | Method and Description |
---|---|
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
String |
getApiDoc() |
String |
getComponentName() |
String |
getHost() |
ComponentVerifier |
getVerifier()
Get the
ComponentVerifier |
void |
setApiDoc(String apiDoc)
The swagger api doc resource to use.
|
void |
setComponentName(String componentName)
The Camel Rest component to use for the REST transport, such as restlet, spark-rest.
|
void |
setHost(String host)
Host and port of HTTP service to use (override host in swagger schema)
|
afterConfiguration, createComponentConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public RestComponent()
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointpublic String getComponentName()
public void setComponentName(String componentName)
public void setApiDoc(String apiDoc)
public void setHost(String host)
public ComponentVerifier getVerifier()
VerifiableComponent
ComponentVerifier
getVerifier
in interface VerifiableComponent
Apache Camel