| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private final ChannelSubsystem | |
| private final ClientSession | |
| private final AtomicBoolean | |
| private final AtomicInteger | |
| private final NavigableMap | |
| private final NavigableMap | |
| private final Map | |
| private Charset | |
| private final Buffer | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | DefaultSftpClient(ClientSession
The clientSession, SftpVersionSelector ClientSessionThe initial initialVersionSelector, SftpErrorDataHandler SftpVersionSelector - if null then version 6 is
assumed.The errorDataHandler)SftpErrorDataHandler to handle incoming data through the error stream
- if null the data is silently ignored
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected ChannelSubsystem | |
| protected int | Returns: Actual size of received dataThe buffer containing the incoming data buf, int Offset in buffer to read the data start, int Available data in buffer len)Receive binary data from server main stream |
| public ClientChannel | |
| public ClientSession | |
| public Charset | |
| public NavigableMap | |
| public int | |
| protected void | |
| protected void | init(ClientSession session, SftpVersionSelector initialVersionSelector, Duration initializationTimeout)
|
| public boolean | |
| public boolean | |
| public int | Returns: The selected version (may be same as current)The selector)SftpVersionSelector to use - ignored if null
|
| protected void | |
| protected boolean | |
| public Buffer | |
| public Buffer | receive(int
The expected request id id, long The amount of time to wait for the response idleTimeout)Implements org.
|
| public Buffer | receive(int
The expected request id id, Duration The amount of time to wait for the response idleTimeout)Implements org.
|
| public int | send(int
Command to send - Note: only lower 8-bits are used cmd, Buffer The buffer)Buffer containing the command dataImplements org.
|
| public void | setNameDecodingCharset(Charset nameDecodingCharset)
Implements org.
|
| protected Buffer | |
| public SftpMessage |
| channel | back to summary |
|---|---|
| private final ChannelSubsystem channel | |
| clientSession | back to summary |
|---|---|
| private final ClientSession clientSession | |
| closing | back to summary |
|---|---|
| private final AtomicBoolean closing | |
| cmdId | back to summary |
|---|---|
| private final AtomicInteger cmdId | |
| exposedExtensions | back to summary |
|---|---|
| private final NavigableMap<String, byte[]> exposedExtensions | |
| extensions | back to summary |
|---|---|
| private final NavigableMap<String, byte[]> extensions | |
| messages | back to summary |
|---|---|
| private final Map<Integer, Buffer> messages | |
| nameDecodingCharset | back to summary |
|---|---|
| private Charset nameDecodingCharset | |
| receiveBuffer | back to summary |
|---|---|
| private final Buffer receiveBuffer | |
| versionHolder | back to summary |
|---|---|
| private final AtomicInteger versionHolder | |
| DefaultSftpClient | back to summary |
|---|---|
public DefaultSftpClient(ClientSession clientSession, SftpVersionSelector initialVersionSelector, SftpErrorDataHandler errorDataHandler) throws IOException
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| createSftpChannelSubsystem | back to summary |
|---|---|
| protected ChannelSubsystem createSftpChannelSubsystem(ClientSession clientSession) | |
| data | back to summary |
|---|---|
| protected int data(byte[] buf, int start, int len) throws IOException Receive binary data from server main stream
| |
| getClientChannel | back to summary |
|---|---|
| public ClientChannel getClientChannel() Implements org.
| |
| getClientSession | back to summary |
|---|---|
| public ClientSession getClientSession() Implements org.
| |
| getNameDecodingCharset | back to summary |
|---|---|
| public Charset getNameDecodingCharset() Implements org.
| |
| getServerExtensions | back to summary |
|---|---|
| public NavigableMap Implements org.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements org.
| |
| handleInitResponse | back to summary |
|---|---|
| protected void handleInitResponse(Buffer buffer) throws IOException | |
| init | back to summary |
|---|---|
| protected void init(ClientSession session, SftpVersionSelector initialVersionSelector, Duration initializationTimeout) throws IOException | |
| isClosing | back to summary |
|---|---|
| public boolean isClosing() Implements org.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| negotiateVersion | back to summary |
|---|---|
public int negotiateVersion(SftpVersionSelector selector) throws IOException
| |
| process | back to summary |
|---|---|
| protected void process(Buffer incoming) throws IOException Process an SFTP packet
| |
| receive | back to summary |
|---|---|
| protected boolean receive(Buffer incoming) throws IOException Read SFTP packets from buffer
| |
| receive | back to summary |
|---|---|
| public Buffer receive(int id) throws IOException Implements org.
| |
| receive | back to summary |
|---|---|
| public Buffer receive(int id, long idleTimeout) throws IOException Implements org.
| |
| receive | back to summary |
|---|---|
| public Buffer receive(int id, Duration idleTimeout) throws IOException Implements org.
| |
| send | back to summary |
|---|---|
| public int send(int cmd, Buffer buffer) throws IOException Implements org.
| |
| setNameDecodingCharset | back to summary |
|---|---|
| public void setNameDecodingCharset(Charset nameDecodingCharset) Implements org.
| |
| waitForInitResponse | back to summary |
|---|---|
| protected Buffer waitForInitResponse(Duration initializationTimeout) throws IOException | |
| write | back to summary |
|---|---|
| public SftpMessage write(int cmd, Buffer buffer) throws IOException Implements org.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected ChannelAsyncOutputStream | |
| protected OutputStream | |
| protected OutputStream | |
| protected void |
| SftpChannelSubsystem | back to summary |
|---|---|
| protected SftpChannelSubsystem() | |
| createAsyncInput | back to summary |
|---|---|
| protected ChannelAsyncOutputStream createAsyncInput(Session session) | |
| createErrOutputStream | back to summary |
|---|---|
| protected OutputStream createErrOutputStream(Session session) | |
| createStdOutputStream | back to summary |
|---|---|
| protected OutputStream createStdOutputStream(Session session) | |
| doOpen | back to summary |
|---|---|
| protected void doOpen() throws IOException Overrides org.
| |