public class ScpComponent extends RemoteFileComponent<ScpFile>
REMOTE_FILE_INPUT_STREAM
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ScpComponent() |
ScpComponent(CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPropertiesSet(GenericFileEndpoint<ScpFile> endpoint)
A factory method for derived file components to perform validation of properties
|
protected GenericFileEndpoint<ScpFile> |
buildFileEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method for derived file components to create the endpoint
|
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 void |
initJsch() |
boolean |
isVerboseLogging() |
void |
setVerboseLogging(boolean verboseLogging)
JSCH is verbose logging out of the box.
|
createEndpoint
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, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ScpComponent()
public ScpComponent(CamelContext context)
protected GenericFileEndpoint<ScpFile> buildFileEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
GenericFileComponent
buildFileEndpoint
in class GenericFileComponent<ScpFile>
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
- can be thrownprotected void afterPropertiesSet(GenericFileEndpoint<ScpFile> endpoint) throws Exception
GenericFileComponent
afterPropertiesSet
in class GenericFileComponent<ScpFile>
endpoint
- the endpointException
- can be thrown in case of validation errorsprotected void doStart() throws Exception
ServiceSupport
Important: See ServiceSupport.doStop()
for more details.
doStart
in class DefaultComponent
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
Important: Camel will invoke this 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 boolean isVerboseLogging()
public void setVerboseLogging(boolean verboseLogging)
protected void initJsch()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.