Package net.schmizz.sshj.sftp
Enum Response.StatusCode
- java.lang.Object
-
- java.lang.Enum<Response.StatusCode>
-
- net.schmizz.sshj.sftp.Response.StatusCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Response.StatusCode>
- Enclosing class:
- Response
public static enum Response.StatusCode extends java.lang.Enum<Response.StatusCode>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private int
code
-
Constructor Summary
Constructors Modifier Constructor Description private
StatusCode(int code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Response.StatusCode
fromInt(int code)
int
getCode()
static Response.StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Response.StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Response.StatusCode UNKNOWN
-
OK
public static final Response.StatusCode OK
-
EOF
public static final Response.StatusCode EOF
-
NO_SUCH_FILE
public static final Response.StatusCode NO_SUCH_FILE
-
PERMISSION_DENIED
public static final Response.StatusCode PERMISSION_DENIED
-
FAILURE
public static final Response.StatusCode FAILURE
-
BAD_MESSAGE
public static final Response.StatusCode BAD_MESSAGE
-
NO_CONNECTION
public static final Response.StatusCode NO_CONNECTION
-
CONNECITON_LOST
public static final Response.StatusCode CONNECITON_LOST
-
OP_UNSUPPORTED
public static final Response.StatusCode OP_UNSUPPORTED
-
INVALID_HANDLE
public static final Response.StatusCode INVALID_HANDLE
-
NO_SUCH_PATH
public static final Response.StatusCode NO_SUCH_PATH
-
FILE_ALREADY_EXISTS
public static final Response.StatusCode FILE_ALREADY_EXISTS
-
WRITE_PROTECT
public static final Response.StatusCode WRITE_PROTECT
-
NO_MEDIA
public static final Response.StatusCode NO_MEDIA
-
NO_SPACE_ON_FILESYSTEM
public static final Response.StatusCode NO_SPACE_ON_FILESYSTEM
-
QUOTA_EXCEEDED
public static final Response.StatusCode QUOTA_EXCEEDED
-
UNKNOWN_PRINCIPAL
public static final Response.StatusCode UNKNOWN_PRINCIPAL
-
LOCK_CONFLICT
public static final Response.StatusCode LOCK_CONFLICT
-
DIR_NOT_EMPTY
public static final Response.StatusCode DIR_NOT_EMPTY
-
NOT_A_DIRECTORY
public static final Response.StatusCode NOT_A_DIRECTORY
-
INVALID_FILENAME
public static final Response.StatusCode INVALID_FILENAME
-
LINK_LOOP
public static final Response.StatusCode LINK_LOOP
-
CANNOT_DELETE
public static final Response.StatusCode CANNOT_DELETE
-
INVALID_PARAMETER
public static final Response.StatusCode INVALID_PARAMETER
-
FILE_IS_A_DIRECTORY
public static final Response.StatusCode FILE_IS_A_DIRECTORY
-
BYTE_RANGE_LOCK_CONFLICT
public static final Response.StatusCode BYTE_RANGE_LOCK_CONFLICT
-
BYTE_RANGE_LOCK_REFUSED
public static final Response.StatusCode BYTE_RANGE_LOCK_REFUSED
-
DELETE_PENDING
public static final Response.StatusCode DELETE_PENDING
-
FILE_CORRUPT
public static final Response.StatusCode FILE_CORRUPT
-
OWNER_INVALID
public static final Response.StatusCode OWNER_INVALID
-
GROUP_INVALID
public static final Response.StatusCode GROUP_INVALID
-
NO_MATCHING_BYTE_RANGE_LOCK
public static final Response.StatusCode NO_MATCHING_BYTE_RANGE_LOCK
-
-
Method Detail
-
values
public static Response.StatusCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Response.StatusCode c : Response.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Response.StatusCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromInt
public static Response.StatusCode fromInt(int code)
-
getCode
public int getCode()
-
-