public enum StatusCode extends Enum<StatusCode>
The top half (128 values) of each range (0x0n80 to 0x0nff, for n = 0 to 5) is reserved for vendor use within each status-code class. Values 0x0600 to 0x7fff are reserved for future assignment by Standards Track documents and MUST NOT be used.
| Enum Constant and Description |
|---|
CLIENT_ERROR_BAD_REQUEST
The request could not be understood by the IPP object due to
malformed syntax (such as the value of a fixed-length attribute whose
length does not match the prescribed length for that attribute -- see
the Implementor's Guides [RFC3196] [PWG5100.19]).
|
CLIENT_ERROR_FORBIDDEN
The IPP object understood the request but is refusing to fulfill it.
|
CLIENT_ERROR_NOT_AUTHENTICATED
The request requires user authentication.
|
CLIENT_ERROR_NOT_AUTHORIZED
The requester is not authorized to perform the request.
|
CLIENT_ERROR_NOT_POSSIBLE
This status-code is used when the request is for something that
cannot happen.
|
SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
The IPP object does not support multiple Documents per Job, and a
Client attempted to supply Document data with a second Send-Document
or Send-URI operation.
|
SUCCESSFUL_OK
The request has succeeded, and no request attributes were substituted
or ignored.
|
SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES
The request has succeeded, but some supplied attribute values
conflicted with the values of other supplied attributes.
|
SUCCESSFUL_OK_IGNORED_OR_SUBSTITUTED_ATTRIBUTES
The request has succeeded, but some supplied (1) attributes were
ignored or (2) unsupported values were substituted with supported
values or were ignored in order to perform the operation without
rejecting it.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getCode()
Gets the value of the statuscode.
|
static StatusCode |
of(int id)
Allows you to map a value to the corresponding statuscode
|
static StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusCode SUCCESSFUL_OK
public static final StatusCode SUCCESSFUL_OK_IGNORED_OR_SUBSTITUTED_ATTRIBUTES
public static final StatusCode SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES
public static final StatusCode CLIENT_ERROR_BAD_REQUEST
public static final StatusCode CLIENT_ERROR_FORBIDDEN
public static final StatusCode CLIENT_ERROR_NOT_AUTHENTICATED
public static final StatusCode CLIENT_ERROR_NOT_AUTHORIZED
public static final StatusCode CLIENT_ERROR_NOT_POSSIBLE
public static final StatusCode SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic short getCode()
public static StatusCode of(int id)
id - e.g. 0x0000Copyright © 2018. All rights reserved.