IppStatusCode.java 7.0 KB

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