public class BoxComponent extends AbstractApiComponent<BoxApiName,BoxConfiguration,BoxApiCollection>
BoxEndpoint
.apiNameClass, collection, configuration
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
BoxComponent() |
BoxComponent(CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected Endpoint |
createEndpoint(String uri,
String methodName,
BoxApiName apiName,
BoxConfiguration endpointConfiguration) |
void |
doShutdown()
Implementations override this method to perform customized shutdown.
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
protected BoxApiName |
getApiName(String apiNameStr) |
CachedBoxClient |
getBoxClient() |
BoxConfiguration |
getConfiguration()
To use the shared configuration
|
void |
setConfiguration(BoxConfiguration configuration)
To use the shared configuration
|
completeEndpointPath, createEndpoint, createEndpointConfiguration, getApiNameOrNull, getCompletedMethods
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public BoxComponent()
public BoxComponent(CamelContext context)
protected BoxApiName getApiName(String apiNameStr) throws IllegalArgumentException
getApiName
in class AbstractApiComponent<BoxApiName,BoxConfiguration,BoxApiCollection>
IllegalArgumentException
protected Endpoint createEndpoint(String uri, String methodName, BoxApiName apiName, BoxConfiguration endpointConfiguration)
createEndpoint
in class AbstractApiComponent<BoxApiName,BoxConfiguration,BoxApiCollection>
public CachedBoxClient getBoxClient()
public void setConfiguration(BoxConfiguration configuration)
setConfiguration
in class AbstractApiComponent<BoxApiName,BoxConfiguration,BoxApiCollection>
public BoxConfiguration getConfiguration()
getConfiguration
in class AbstractApiComponent<BoxApiName,BoxConfiguration,BoxApiCollection>
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultComponent
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class DefaultComponent
Exception
ServiceSupport.doStart()
public void doShutdown() throws Exception
ServiceSupport
doShutdown
in class ServiceSupport
Exception
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.