Package net.schmizz.sshj.sftp
Enum Class Response.StatusCode
- All Implemented Interfaces:
Serializable
,Comparable<Response.StatusCode>
,Constable
- Enclosing class:
Response
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Response.StatusCode
fromInt
(int code) int
getCode()
static Response.StatusCode
Returns the enum constant of this class with the specified name.static Response.StatusCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
OK
-
EOF
-
NO_SUCH_FILE
-
PERMISSION_DENIED
-
FAILURE
-
BAD_MESSAGE
-
NO_CONNECTION
-
CONNECITON_LOST
-
OP_UNSUPPORTED
-
INVALID_HANDLE
-
NO_SUCH_PATH
-
FILE_ALREADY_EXISTS
-
WRITE_PROTECT
-
NO_MEDIA
-
NO_SPACE_ON_FILESYSTEM
-
QUOTA_EXCEEDED
-
UNKNOWN_PRINCIPAL
-
LOCK_CONFLICT
-
DIR_NOT_EMPTY
-
NOT_A_DIRECTORY
-
INVALID_FILENAME
-
LINK_LOOP
-
CANNOT_DELETE
-
INVALID_PARAMETER
-
FILE_IS_A_DIRECTORY
-
BYTE_RANGE_LOCK_CONFLICT
-
BYTE_RANGE_LOCK_REFUSED
-
DELETE_PENDING
-
FILE_CORRUPT
-
OWNER_INVALID
-
GROUP_INVALID
-
NO_MATCHING_BYTE_RANGE_LOCK
-
-
Field Details
-
code
private final int code
-
-
Constructor Details
-
StatusCode
private StatusCode(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
-
getCode
public int getCode()
-