Merge from mainline.
[official-gcc.git] / libjava / classpath / gnu / javax / print / ipp / IppStatusCode.java
blobd2cb8391f45700534aaef75f4962d30a06be0301
1 /* IppStatusCode.java --
2 Copyright (C) 2006 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
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.
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.
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.
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.
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. */
39 package gnu.javax.print.ipp;
41 /**
42 * IPP Status codes as described in RFC 2911 APPENDIX B
43 * (Status Codes and Suggested Status Code Messages)
45 * @author Wolfgang Baer (WBaer@gmx.de)
47 public final class IppStatusCode
49 /**
50 * Indicates a successful request with no attributes being
51 * ignored or substituted.
53 public static final int SUCCESSFUL_OK = 0x0000;
55 /**
56 * Indicates a successful request, however some of the supplied
57 * attributes are ignored or substituted.
59 public static final int SUCCESSFUL_OK_IGNORED_OR_SUBSTITUED_ATTRIBUTES = 0x0001;
61 /**
62 * Indicates a successful request, however some of the supplied
63 * attributes conflicted and therefore were ignored or substituted.
65 public static final int SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES = 0x0002;
67 // Client Error Status Codes
68 // Indicates that the client has done something wrong in its
69 // requests send to the IPP server object
71 /** Indicates a bad request e.g. malformed syntax. */
72 public static final int CLIENT_ERROR_BAD_REQUEST = 0x0400;
74 /** Indicates that the client is forbidden to access the server. */
75 public static final int CLIENT_ERROR_FORBIDDEN = 0x0401;
77 /** Indicates that the client needs to authenticate. */
78 public static final int CLIENT_ERROR_NOT_AUTHENTICATED = 0x0402;
80 /** Indicates that the client is not authorized. */
81 public static final int CLIENT_ERROR_NOT_AUTHORIZED = 0x0403;
83 /**
84 * Indicates a request which is not possible to process.
85 * For example if the request is directed at a job already finished.
87 public static final int CLIENT_ERROR_NOT_POSSIBLE = 0x0404;
89 /** Indicates that the client got a timeout for additional action. */
90 public static final int CLIENT_ERROR_TIMEOUT = 0x0405;
92 /** Indicates that nothing was found for the request uri. */
93 public static final int CLIENT_ERROR_NOT_FOUND = 0x0406;
95 /** Indicates that the requested object is gone. */
96 public static final int CLIENT_ERROR_GONE = 0x0407;
98 /** Indicates that the request entities are too long. */
99 public static final int CLIENT_ERROR_REQUEST_ENTITY_TOO_LONG = 0x0408;
101 /** Indicates that a request value is too long. */
102 public static final int CLIENT_ERROR_REQUEST_VALUE_TOO_LONG = 0x0409;
104 /** Indicates that the supplied document format is not supported. */
105 public static final int CLIENT_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED = 0x040A;
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.
112 public static final int CLIENT_ERROR_ATTRIBUTES_OR_VALUES_NOT_SUPPORTED
113 = 0x040B;
115 /**
116 * Indicates the the URI scheme in a supplied print-uri or send-uri attribute
117 * is not supported.
119 public static final int CLIENT_ERROR_URI_SCHEME_NOT_SUPPORTED = 0x040C;
121 /** Indicates that a supplied attributes-charset is not supported. */
122 public static final int CLIENT_ERROR_CHARSET_NOT_SUPPORTED = 0x040D;
124 /** Indicates that conflicting attributes are in the request. */
125 public static final int CLIENT_ERROR_CONFLICTING_ATTRIBUTES = 0x040E;
127 /** Indicates that the specified algorithm is not supported. */
128 public static final int CLIENT_ERROR_COMPRESSION_NOT_SUPPORTED = 0x040F;
130 /**
131 * Indicates that the document cannot be decompressed with the client
132 * compression algorithm specified by the client.
134 public static final int CLIENT_ERROR_COMPRESSION_ERROR = 0x0410;
136 /** Indicates an error in the document format of the document. */
137 public static final int CLIENT_ERROR_DOCUMENT_FORMAT_ERROR = 0x0411;
139 /**
140 * Indicates that the document supplied via print-uri or send-uri cannot be
141 * accessed by the printer object.
143 public static final int CLIENT_ERROR_DOCUMENT_ACCESS_ERROR = 0x0412;
146 /** Indicates an internal server error. */
147 public static final int SERVER_ERROR_INTERNAL_ERROR = 0x0500;
149 /** Indicates that the server does not support the operation. */
150 public static final int SERVER_ERROR_OPERATION_NOT_SUPPORTED = 0x0501;
152 /** Indicates that the server' service is not available. */
153 public static final int SERVER_ERROR_SERVICE_UNAVAILABLE = 0x0502;
155 /** Indicates that the server does not support the IPP version. */
156 public static final int SERVER_ERROR_VERSION_NOT_SUPPORTED = 0x0503;
158 /** Indicates that the server has a device error e.g. paper jam. */
159 public static final int SERVER_ERROR_DEVICE_ERROR = 0x0504;
161 /** Indicates that the server has a temporary error. */
162 public static final int SERVER_ERROR_TEMPORARY_ERROR = 0x0505;
164 /** Indicates that the server is currently not accepting jobs. */
165 public static final int SERVER_ERROR_NOT_ACCEPTING_JOBS = 0x0506;
167 /**
168 * Indicates that the server is currently busy with processing.
169 * Requests may be tried later again.
171 public static final int SERVER_ERROR_BUSY = 0x0507;
173 /** Indicates that the server has canceled the job for various reasons. */
174 public static final int SERVER_ERROR_JOB_CANCELED = 0x0508;
176 /** Indicates that the server does not support multidocument jobs. */
177 public static final int SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
178 = 0x0509;
180 private IppStatusCode()
182 // not to be instantiated