Top Description Fields Constructors Methods
org.apache.sshd.scp.client

public Class DefaultScpClientCreator

extends AbstractScpClientCreator
Class Inheritance
Imports
org.apache.sshd.client.session.ClientSession, org.apache.sshd.scp.common.ScpFileOpener, .ScpTransferEventListener

TODO Add javadoc
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final DefaultScpClientCreator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ScpClient
createScpClient(ClientSession session, ScpFileOpener
The ScpFileOpener to use to control how local files are read/written. If null then a default opener is used

Note

this opener is used instead of any instance set via setScpFileOpener(ScpFileOpener)

opener
,
ScpTransferEventListener
A ScpTransferEventListener that can be used to receive information about the SCP operations - may be null to indicate no more events are required

Note

this listener is used instead of any listener set via setScpTransferEventListener(ScpTransferEventListener)

listener
)

Implements org.apache.sshd.scp.client.ScpClientCreator.createScpClient.

Create an SCP client from this session.

Inherited from org.apache.sshd.scp.client.AbstractScpClientCreator:
getScpFileOpenergetScpTransferEventListenersetScpFileOpenersetScpTransferEventListener

Field Detail

INSTANCEback to summary
public static final DefaultScpClientCreator INSTANCE

Constructor Detail

DefaultScpClientCreatorback to summary
public DefaultScpClientCreator()

Method Detail

createScpClientback to summary
public ScpClient createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)

Implements org.apache.sshd.scp.client.ScpClientCreator.createScpClient.

Doc from org.apache.sshd.scp.client.ScpClientCreator.createScpClient.

Create an SCP client from this session.

Parameters
session:ClientSession

The ClientSession

opener:ScpFileOpener

The ScpFileOpener to use to control how local files are read/written. If null then a default opener is used

Note

this opener is used instead of any instance set via setScpFileOpener(ScpFileOpener)

listener:ScpTransferEventListener

A ScpTransferEventListener that can be used to receive information about the SCP operations - may be null to indicate no more events are required

Note

this listener is used instead of any listener set via setScpTransferEventListener(ScpTransferEventListener)

Returns:ScpClient

An ScpClient instance

Annotations
@Override