| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final AtomicBoolean | |
| private final Path | |
| private final String | |
| private final SftpSubsystem |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | |
| public void | clearAttributes()
Implements org. Removes all currently stored user-defined attributes |
| public void | |
| public <T> T | computeAttributeIfAbsent(AttributeRepository.
The key of the attribute; must not be key,null.The (never resolver)null) mapping function to use if value not already mapped. If returns
null then value is not mapped to the provided key.Overrides default org. If the specified key is not already associated with a value (or is mapped to |
| public <T> T | getAttribute(AttributeRepository.
The key of the attribute; must not be keynull.Implements org. Returns the value of the user-defined attribute. |
| public int | |
| public Path | |
| public String | Returns: the raw file handleRetrieves the raw opaque file handle, which may contain characters not safe for printing. |
| protected SftpSubsystem | |
| public boolean | |
| public <T> T | removeAttribute(AttributeRepository.
The key of the attribute; must not be keynull.Implements org. Removes the user-defined attribute |
| protected static String | |
| public <T> T | setAttribute(AttributeRepository.
The key of the attribute; must not be key,null.The value of the attribute; must not be value)null.Implements org. Sets a user-defined attribute. |
| protected void | |
| protected void | |
| public String |
| attributes | back to summary |
|---|---|
| private final Map<AttributeRepository. | |
| closed | back to summary |
|---|---|
| private final AtomicBoolean closed | |
| file | back to summary |
|---|---|
| private final Path file | |
| handle | back to summary |
|---|---|
| private final String handle | |
| sftpSubsystem | back to summary |
|---|---|
| private final SftpSubsystem sftpSubsystem | |
| Handle | back to summary |
|---|---|
| protected Handle(SftpSubsystem subsystem, Path file, String handle) | |
| attributeKeys | back to summary |
|---|---|
| public Collection Implements org.
| |
| clearAttributes | back to summary |
|---|---|
| public void clearAttributes() Implements org. Doc from org. Removes all currently stored user-defined attributes
| |
| 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.
| |
| computeAttributeIfAbsent | back to summary |
|---|---|
| public <T> T computeAttributeIfAbsent(AttributeRepository. Overrides default org. Doc from org. If the specified key is not already associated with a value (or is mapped to
| |
| getAttribute | back to summary |
|---|---|
| public <T> T getAttribute(AttributeRepository. Implements org. Doc from org. Returns the value of the user-defined attribute.
| |
| getAttributesCount | back to summary |
|---|---|
| public int getAttributesCount() Implements org.
| |
| getFile | back to summary |
|---|---|
| public Path getFile() | |
| getFileHandle | back to summary |
|---|---|
| public String getFileHandle() Retrieves the raw opaque file handle, which may contain characters not safe for printing.
| |
| getSubsystem | back to summary |
|---|---|
| protected SftpSubsystem getSubsystem() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| removeAttribute | back to summary |
|---|---|
| public <T> T removeAttribute(AttributeRepository. Implements org. Doc from org. Removes the user-defined attribute
| |
| safe | back to summary |
|---|---|
| protected static String safe(String handle) Converts a file handle, which may contain non-printable characters, to a hex representation of its bytes, which is safe to write to logs or exception messages. For historical reasons, Apache MINA sshd represents file handles as strings internally. | |
| setAttribute | back to summary |
|---|---|
| public <T> T setAttribute(AttributeRepository. Implements org. Doc from org. Sets a user-defined attribute.
| |
| signalHandleOpen | back to summary |
|---|---|
| protected void signalHandleOpen() throws IOException | |
| signalHandleOpening | back to summary |
|---|---|
| protected void signalHandleOpening() 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- | |