ClientSession-s and simply copying from one server to the other
| Modifier and Type | Field and Description |
|---|---|
| protected final Charset | |
| protected final Charset | |
| private final ClientSession | |
| protected final ScpRemote2RemoteTransferListener | |
| private final ClientSession |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ScpRemote2RemoteTransferHelper(ClientSession
The source sourceSession, ClientSession ClientSessionThe destination destSession, ScpRemote2RemoteTransferListener ClientSessionAn optional listener)ScpRemote2RemoteTransferListener
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | executeTransfer(String source, Collection<ScpClient.
|
| public ClientSession | |
| public ClientSession | |
| protected void | handleDirectoryTransferRequest(String srcPath, InputStream srcIn, OutputStream srcOut, String dstPath, InputStream dstIn, OutputStream dstOut, int depth, ScpTimestampCommandDetails dirTime, String header)
|
| protected long | handleFileTransferRequest(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, ScpTimestampCommandDetails fileTime, String header)
|
| protected Object | |
| protected void | redirectDirectoryTransfer(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, int depth)
|
| protected long | redirectFileTransfer(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut)
|
| protected void | |
| public String | |
| public void | transferDirectory(String
Source path in the source session source, String Destination path in the destination session destination, boolean Whether to preserve the attributes of the transferred file (e.g., permissions, file
associated timestamps, etc.) preserveAttributes)Transfers a directory |
| public void | transferFile(String
Source path in the source session source, String Destination path in the destination session destination, boolean Whether to preserve the attributes of the transferred file (e.g., permissions, file
associated timestamps, etc.) preserveAttributes)Transfers a single file |
| protected long | transferSimpleFile(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, String header, long length)
|
| protected ScpAckInfo | |
| protected String | transferTimestampCommand(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, String header)
|
| csIn | back to summary |
|---|---|
| protected final Charset csIn | |
| csOut | back to summary |
|---|---|
| protected final Charset csOut | |
| destSession | back to summary |
|---|---|
| private final ClientSession destSession | |
| listener | back to summary |
|---|---|
| protected final ScpRemote2RemoteTransferListener listener | |
| sourceSession | back to summary |
|---|---|
| private final ClientSession sourceSession | |
| ScpRemote2RemoteTransferHelper | back to summary |
|---|---|
| public ScpRemote2RemoteTransferHelper(ClientSession sourceSession, ClientSession destSession) | |
| ScpRemote2RemoteTransferHelper | back to summary |
|---|---|
public ScpRemote2RemoteTransferHelper(ClientSession sourceSession, ClientSession destSession, ScpRemote2RemoteTransferListener listener)
| |
| executeTransfer | back to summary |
|---|---|
| protected void executeTransfer(String source, Collection<ScpClient. | |
| getDestinationSession | back to summary |
|---|---|
| public ClientSession getDestinationSession() | |
| getSourceSession | back to summary |
|---|---|
| public ClientSession getSourceSession() | |
| handleDirectoryTransferRequest | back to summary |
|---|---|
protected void handleDirectoryTransferRequest(String srcPath, InputStream srcIn, OutputStream srcOut, String dstPath, InputStream dstIn, OutputStream dstOut, int depth, ScpTimestampCommandDetails dirTime, String header) throws IOException
| |
| handleFileTransferRequest | back to summary |
|---|---|
| protected long handleFileTransferRequest(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, ScpTimestampCommandDetails fileTime, String header) throws IOException | |
| receiveNextCmd | back to summary |
|---|---|
| protected Object receiveNextCmd(Object logHint, InputStream in) throws IOException | |
| redirectDirectoryTransfer | back to summary |
|---|---|
| protected void redirectDirectoryTransfer(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, int depth) throws IOException | |
| redirectFileTransfer | back to summary |
|---|---|
| protected long redirectFileTransfer(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut) throws IOException | |
| signalReceivedCommand | back to summary |
|---|---|
| protected void signalReceivedCommand(AbstractScpCommandDetails details) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| transferDirectory | back to summary |
|---|---|
| public void transferDirectory(String source, String destination, boolean preserveAttributes) throws IOException Transfers a directory
| |
| transferFile | back to summary |
|---|---|
| public void transferFile(String source, String destination, boolean preserveAttributes) throws IOException Transfers a single file
| |
| transferSimpleFile | back to summary |
|---|---|
| protected long transferSimpleFile(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, String header, long length) throws IOException | |
| transferStatusCode | back to summary |
|---|---|
| protected ScpAckInfo transferStatusCode(Object logHint, InputStream in, OutputStream out) throws IOException | |
| transferTimestampCommand | back to summary |
|---|---|
| protected String transferTimestampCommand(String source, InputStream srcIn, OutputStream srcOut, String destination, InputStream dstIn, OutputStream dstOut, String header) throws IOException | |