| 1 |
769 |
jeremybenn |
/* IppStatusCode.java --
|
| 2 |
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
| 3 |
|
|
|
| 4 |
|
|
This file is part of GNU Classpath.
|
| 5 |
|
|
|
| 6 |
|
|
GNU Classpath is free software; you can redistribute it and/or modify
|
| 7 |
|
|
it under the terms of the GNU General Public License as published by
|
| 8 |
|
|
the Free Software Foundation; either version 2, or (at your option)
|
| 9 |
|
|
any later version.
|
| 10 |
|
|
|
| 11 |
|
|
GNU Classpath is distributed in the hope that it will be useful, but
|
| 12 |
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 14 |
|
|
General Public License for more details.
|
| 15 |
|
|
|
| 16 |
|
|
You should have received a copy of the GNU General Public License
|
| 17 |
|
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
| 18 |
|
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
| 19 |
|
|
02110-1301 USA.
|
| 20 |
|
|
|
| 21 |
|
|
Linking this library statically or dynamically with other modules is
|
| 22 |
|
|
making a combined work based on this library. Thus, the terms and
|
| 23 |
|
|
conditions of the GNU General Public License cover the whole
|
| 24 |
|
|
combination.
|
| 25 |
|
|
|
| 26 |
|
|
As a special exception, the copyright holders of this library give you
|
| 27 |
|
|
permission to link this library with independent modules to produce an
|
| 28 |
|
|
executable, regardless of the license terms of these independent
|
| 29 |
|
|
modules, and to copy and distribute the resulting executable under
|
| 30 |
|
|
terms of your choice, provided that you also meet, for each linked
|
| 31 |
|
|
independent module, the terms and conditions of the license of that
|
| 32 |
|
|
module. An independent module is a module which is not derived from
|
| 33 |
|
|
or based on this library. If you modify this library, you may extend
|
| 34 |
|
|
this exception to your version of the library, but you are not
|
| 35 |
|
|
obligated to do so. If you do not wish to do so, delete this
|
| 36 |
|
|
exception statement from your version. */
|
| 37 |
|
|
|
| 38 |
|
|
|
| 39 |
|
|
package gnu.javax.print.ipp;
|
| 40 |
|
|
|
| 41 |
|
|
/**
|
| 42 |
|
|
* IPP Status codes as described in RFC 2911 APPENDIX B
|
| 43 |
|
|
* (Status Codes and Suggested Status Code Messages)
|
| 44 |
|
|
*
|
| 45 |
|
|
* @author Wolfgang Baer (WBaer@gmx.de)
|
| 46 |
|
|
*/
|
| 47 |
|
|
public final class IppStatusCode
|
| 48 |
|
|
{
|
| 49 |
|
|
/**
|
| 50 |
|
|
* Indicates a successful request with no attributes being
|
| 51 |
|
|
* ignored or substituted.
|
| 52 |
|
|
*/
|
| 53 |
|
|
public static final int SUCCESSFUL_OK = 0x0000;
|
| 54 |
|
|
|
| 55 |
|
|
/**
|
| 56 |
|
|
* Indicates a successful request, however some of the supplied
|
| 57 |
|
|
* attributes are ignored or substituted.
|
| 58 |
|
|
*/
|
| 59 |
|
|
public static final int SUCCESSFUL_OK_IGNORED_OR_SUBSTITUED_ATTRIBUTES = 0x0001;
|
| 60 |
|
|
|
| 61 |
|
|
/**
|
| 62 |
|
|
* Indicates a successful request, however some of the supplied
|
| 63 |
|
|
* attributes conflicted and therefore were ignored or substituted.
|
| 64 |
|
|
*/
|
| 65 |
|
|
public static final int SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES = 0x0002;
|
| 66 |
|
|
|
| 67 |
|
|
// Client Error Status Codes
|
| 68 |
|
|
// Indicates that the client has done something wrong in its
|
| 69 |
|
|
// requests send to the IPP server object
|
| 70 |
|
|
|
| 71 |
|
|
/** Indicates a bad request e.g. malformed syntax. */
|
| 72 |
|
|
public static final int CLIENT_ERROR_BAD_REQUEST = 0x0400;
|
| 73 |
|
|
|
| 74 |
|
|
/** Indicates that the client is forbidden to access the server. */
|
| 75 |
|
|
public static final int CLIENT_ERROR_FORBIDDEN = 0x0401;
|
| 76 |
|
|
|
| 77 |
|
|
/** Indicates that the client needs to authenticate. */
|
| 78 |
|
|
public static final int CLIENT_ERROR_NOT_AUTHENTICATED = 0x0402;
|
| 79 |
|
|
|
| 80 |
|
|
/** Indicates that the client is not authorized. */
|
| 81 |
|
|
public static final int CLIENT_ERROR_NOT_AUTHORIZED = 0x0403;
|
| 82 |
|
|
|
| 83 |
|
|
/**
|
| 84 |
|
|
* Indicates a request which is not possible to process.
|
| 85 |
|
|
* For example if the request is directed at a job already finished.
|
| 86 |
|
|
*/
|
| 87 |
|
|
public static final int CLIENT_ERROR_NOT_POSSIBLE = 0x0404;
|
| 88 |
|
|
|
| 89 |
|
|
/** Indicates that the client got a timeout for additional action. */
|
| 90 |
|
|
public static final int CLIENT_ERROR_TIMEOUT = 0x0405;
|
| 91 |
|
|
|
| 92 |
|
|
/** Indicates that nothing was found for the request uri. */
|
| 93 |
|
|
public static final int CLIENT_ERROR_NOT_FOUND = 0x0406;
|
| 94 |
|
|
|
| 95 |
|
|
/** Indicates that the requested object is gone. */
|
| 96 |
|
|
public static final int CLIENT_ERROR_GONE = 0x0407;
|
| 97 |
|
|
|
| 98 |
|
|
/** Indicates that the request entities are too long. */
|
| 99 |
|
|
public static final int CLIENT_ERROR_REQUEST_ENTITY_TOO_LONG = 0x0408;
|
| 100 |
|
|
|
| 101 |
|
|
/** Indicates that a request value is too long. */
|
| 102 |
|
|
public static final int CLIENT_ERROR_REQUEST_VALUE_TOO_LONG = 0x0409;
|
| 103 |
|
|
|
| 104 |
|
|
/** Indicates that the supplied document format is not supported. */
|
| 105 |
|
|
public static final int CLIENT_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED = 0x040A;
|
| 106 |
|
|
|
| 107 |
|
|
/**
|
| 108 |
|
|
* Indicates that the supplied attributes or values of attributes are not
|
| 109 |
|
|
* supported by the printer object. Returning this code depends on the
|
| 110 |
|
|
* given "ipp-attribute-fidelity" operation attribute value.
|
| 111 |
|
|
*/
|
| 112 |
|
|
public static final int CLIENT_ERROR_ATTRIBUTES_OR_VALUES_NOT_SUPPORTED
|
| 113 |
|
|
= 0x040B;
|
| 114 |
|
|
|
| 115 |
|
|
/**
|
| 116 |
|
|
* Indicates the the URI scheme in a supplied print-uri or send-uri attribute
|
| 117 |
|
|
* is not supported.
|
| 118 |
|
|
*/
|
| 119 |
|
|
public static final int CLIENT_ERROR_URI_SCHEME_NOT_SUPPORTED = 0x040C;
|
| 120 |
|
|
|
| 121 |
|
|
/** Indicates that a supplied attributes-charset is not supported. */
|
| 122 |
|
|
public static final int CLIENT_ERROR_CHARSET_NOT_SUPPORTED = 0x040D;
|
| 123 |
|
|
|
| 124 |
|
|
/** Indicates that conflicting attributes are in the request. */
|
| 125 |
|
|
public static final int CLIENT_ERROR_CONFLICTING_ATTRIBUTES = 0x040E;
|
| 126 |
|
|
|
| 127 |
|
|
/** Indicates that the specified algorithm is not supported. */
|
| 128 |
|
|
public static final int CLIENT_ERROR_COMPRESSION_NOT_SUPPORTED = 0x040F;
|
| 129 |
|
|
|
| 130 |
|
|
/**
|
| 131 |
|
|
* Indicates that the document cannot be decompressed with the client
|
| 132 |
|
|
* compression algorithm specified by the client.
|
| 133 |
|
|
*/
|
| 134 |
|
|
public static final int CLIENT_ERROR_COMPRESSION_ERROR = 0x0410;
|
| 135 |
|
|
|
| 136 |
|
|
/** Indicates an error in the document format of the document. */
|
| 137 |
|
|
public static final int CLIENT_ERROR_DOCUMENT_FORMAT_ERROR = 0x0411;
|
| 138 |
|
|
|
| 139 |
|
|
/**
|
| 140 |
|
|
* Indicates that the document supplied via print-uri or send-uri cannot be
|
| 141 |
|
|
* accessed by the printer object.
|
| 142 |
|
|
*/
|
| 143 |
|
|
public static final int CLIENT_ERROR_DOCUMENT_ACCESS_ERROR = 0x0412;
|
| 144 |
|
|
|
| 145 |
|
|
|
| 146 |
|
|
/** Indicates an internal server error. */
|
| 147 |
|
|
public static final int SERVER_ERROR_INTERNAL_ERROR = 0x0500;
|
| 148 |
|
|
|
| 149 |
|
|
/** Indicates that the server does not support the operation. */
|
| 150 |
|
|
public static final int SERVER_ERROR_OPERATION_NOT_SUPPORTED = 0x0501;
|
| 151 |
|
|
|
| 152 |
|
|
/** Indicates that the server' service is not available. */
|
| 153 |
|
|
public static final int SERVER_ERROR_SERVICE_UNAVAILABLE = 0x0502;
|
| 154 |
|
|
|
| 155 |
|
|
/** Indicates that the server does not support the IPP version. */
|
| 156 |
|
|
public static final int SERVER_ERROR_VERSION_NOT_SUPPORTED = 0x0503;
|
| 157 |
|
|
|
| 158 |
|
|
/** Indicates that the server has a device error e.g. paper jam. */
|
| 159 |
|
|
public static final int SERVER_ERROR_DEVICE_ERROR = 0x0504;
|
| 160 |
|
|
|
| 161 |
|
|
/** Indicates that the server has a temporary error. */
|
| 162 |
|
|
public static final int SERVER_ERROR_TEMPORARY_ERROR = 0x0505;
|
| 163 |
|
|
|
| 164 |
|
|
/** Indicates that the server is currently not accepting jobs. */
|
| 165 |
|
|
public static final int SERVER_ERROR_NOT_ACCEPTING_JOBS = 0x0506;
|
| 166 |
|
|
|
| 167 |
|
|
/**
|
| 168 |
|
|
* Indicates that the server is currently busy with processing.
|
| 169 |
|
|
* Requests may be tried later again.
|
| 170 |
|
|
*/
|
| 171 |
|
|
public static final int SERVER_ERROR_BUSY = 0x0507;
|
| 172 |
|
|
|
| 173 |
|
|
/** Indicates that the server has canceled the job for various reasons. */
|
| 174 |
|
|
public static final int SERVER_ERROR_JOB_CANCELED = 0x0508;
|
| 175 |
|
|
|
| 176 |
|
|
/** Indicates that the server does not support multidocument jobs. */
|
| 177 |
|
|
public static final int SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
|
| 178 |
|
|
= 0x0509;
|
| 179 |
|
|
|
| 180 |
|
|
private IppStatusCode()
|
| 181 |
|
|
{
|
| 182 |
|
|
// not to be instantiated
|
| 183 |
|
|
}
|
| 184 |
|
|
|
| 185 |
|
|
}
|