From 568fa3faf16f8694653600d87955473941cc03c1 Mon Sep 17 00:00:00 2001
From: msweet
CUPS is based on the Internet Printing Protocol ("IPP"), which allows
+clients (applications) to communicate with a server (the scheduler) to get a
+list of printers, send print jobs, and so forth. You identify which server
+you want to communicate with using a pointer to the opaque structure
+http_t
. All of the examples in this document use the
+CUPS_HTTP_DEFAULT
constant, referring to the default connection
+to the scheduler. The HTTP and IPP
+APIs document provides more information on server connections.
Printers and classes (collections of printers) are accessed through
the cups_dest_t
structure which
includes the name (name
), instance (instance
-
-a way of selected certain saved options), and the options and attributes
-associated with that destination (num_options
and
+a way of selecting certain saved options/settings), and the options and
+attributes associated with that destination (num_options
and
options
). Destinations are created using the
cupsGetDests
function and freed
using the cupsFreeDests
function.
@@ -172,7 +183,8 @@ int num_options = 0;
cups_dest_t *dest;
for (i = 0; i < dest->num_options; i ++)
- num_options = cupsAddOption(dest->options[i].name, dest->options[i].value, num_options, &options);
+ num_options = cupsAddOption(dest->options[i].name, dest->options[i].value,
+ num_options, &options);
Use the cupsFreeOptions
@@ -199,7 +211,8 @@ int num_options;
int job_id;
/* Print a single file */
-job_id = cupsPrintFile(dest->name, "/usr/share/cups/data/testprint.ps", "Test Print", num_options, options);
+job_id = cupsPrintFile(dest->name, "/usr/share/cups/data/testprint.ps",
+ "Test Print", num_options, options);
The cupsPrintFiles
function
@@ -237,7 +250,8 @@ int i;
char buffer[1024];
/* Create the job */
-job_id = cupsCreateJob(CUPS_HTTP_DEFAULT, dest->name, "10 Text Files", num_options, options);
+job_id = cupsCreateJob(CUPS_HTTP_DEFAULT, dest->name, "10 Text Files",
+ num_options, options);
/* If the job is created, add 10 files */
if (job_id > 0)
@@ -246,7 +260,8 @@ if (job_id > 0)
{
snprintf(buffer, sizeof(buffer), "file%d.txt", i);
- cupsStartDocument(CUPS_HTTP_DEFAULT, dest->name, job_id, buffer, CUPS_FORMAT_TEXT, i == 10);
+ cupsStartDocument(CUPS_HTTP_DEFAULT, dest->name, job_id, buffer,
+ CUPS_FORMAT_TEXT, i == 10);
snprintf(buffer, sizeof(buffer),
"File %d\n"
@@ -338,7 +353,7 @@ while (job_state < IPP_JOB_STOPPED)
cupsCancelJob
function with the
job ID:
+#include <cups/cups.h> cups_dest_t *dest; diff --git a/cups/auth.c b/cups/auth.c index adc2436c9..4391a3db0 100644 --- a/cups/auth.c +++ b/cups/auth.c @@ -83,7 +83,7 @@ static int cups_local_auth(http_t *http); */ int /* O - 0 on success, -1 on error */ -cupsDoAuthentication(http_t *http, /* I - HTTP connection to server */ +cupsDoAuthentication(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *method,/* I - Request method ("GET", "POST", "PUT") */ const char *resource) /* I - Resource path */ diff --git a/cups/dest.c b/cups/dest.c index 6f61181d6..bafe52f14 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -310,7 +310,7 @@ cupsGetDests(cups_dest_t **dests) /* O - Destinations */ */ int /* O - Number of destinations */ -cupsGetDests2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsGetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ cups_dest_t **dests) /* O - Destinations */ { int i; /* Looping var */ @@ -495,8 +495,8 @@ cupsGetDests2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAU */ cups_dest_t * /* O - Destination or @code NULL@ */ -cupsGetNamedDest(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name, /* I - Destination name or @code NULL@ */ +cupsGetNamedDest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name, /* I - Destination name or @code NULL@ for the default destination */ const char *instance) /* I - Instance name or @code NULL@ */ { cups_dest_t *dest; /* Destination */ @@ -704,7 +704,7 @@ cupsSetDests(int num_dests, /* I - Number of destinations */ */ int /* O - 0 on success, -1 on error */ -cupsSetDests2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsSetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { @@ -1473,7 +1473,7 @@ cups_get_dests(const char *filename, /* I - File to read from */ */ static int /* O - Number of destinations */ -cups_get_sdests(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +cups_get_sdests(http_t *http, /* I - Connection to server or CUPS_HTTP_DEFAULT */ ipp_op_t op, /* I - IPP operation */ const char *name, /* I - Name of destination */ int num_dests, /* I - Number of destinations */ diff --git a/cups/encode.c b/cups/encode.c index 506b87f0f..0fb288b1a 100644 --- a/cups/encode.c +++ b/cups/encode.c @@ -3,7 +3,7 @@ * * Option encoding routines for the Common UNIX Printing System (CUPS). * - * Copyright 2007 by Apple Inc. + * Copyright 2007-2008 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -67,6 +67,8 @@ static const _ipp_option_t ipp_options[] = { 0, "job-page-limit", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "job-priority", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "job-quota-period", IPP_TAG_INTEGER, IPP_TAG_JOB }, + { 1, "job-sheets", IPP_TAG_NAME, IPP_TAG_JOB }, + { 1, "job-sheets-default", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "job-uuid", IPP_TAG_URI, IPP_TAG_JOB }, { 0, "landscape", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 1, "media", IPP_TAG_KEYWORD, IPP_TAG_JOB }, diff --git a/cups/getputfile.c b/cups/getputfile.c index e144bd8e6..1694f498a 100644 --- a/cups/getputfile.c +++ b/cups/getputfile.c @@ -51,7 +51,7 @@ */ http_status_t /* O - HTTP status */ -cupsGetFd(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP_DEFAULT@ */ +cupsGetFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ int fd) /* I - File descriptor */ { @@ -191,7 +191,7 @@ cupsGetFd(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP */ http_status_t /* O - HTTP status */ -cupsGetFile(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP_DEFAULT@ */ +cupsGetFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ const char *filename) /* I - Filename */ { @@ -259,7 +259,7 @@ cupsGetFile(http_t *http, /* I - HTTP connection to server or @code CUPS_HT */ http_status_t /* O - HTTP status */ -cupsPutFd(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP_DEFAULT@ */ +cupsPutFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ int fd) /* I - File descriptor */ { @@ -444,7 +444,7 @@ cupsPutFd(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP */ http_status_t /* O - HTTP status */ -cupsPutFile(http_t *http, /* I - HTTP connection to server or @code CUPS_HTTP_DEFAULT@ */ +cupsPutFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ const char *filename) /* I - Filename */ { diff --git a/cups/http.c b/cups/http.c index f860a221d..82b612aca 100644 --- a/cups/http.c +++ b/cups/http.c @@ -220,7 +220,7 @@ _httpBIOMethods(void) */ void -httpBlocking(http_t *http, /* I - HTTP connection */ +httpBlocking(http_t *http, /* I - Connection to server */ int b) /* I - 1 = blocking, 0 = non-blocking */ { if (http) @@ -233,7 +233,7 @@ httpBlocking(http_t *http, /* I - HTTP connection */ */ int /* O - 0 = no data, 1 = data available */ -httpCheck(http_t *http) /* I - HTTP connection */ +httpCheck(http_t *http) /* I - Connection to server */ { return (httpWait(http, 0)); } @@ -246,7 +246,7 @@ httpCheck(http_t *http) /* I - HTTP connection */ */ void -httpClearCookie(http_t *http) /* I - HTTP connection */ +httpClearCookie(http_t *http) /* I - Connection to server */ { if (!http) return; @@ -264,7 +264,7 @@ httpClearCookie(http_t *http) /* I - HTTP connection */ */ void -httpClearFields(http_t *http) /* I - HTTP connection */ +httpClearFields(http_t *http) /* I - Connection to server */ { if (http) { @@ -290,7 +290,7 @@ httpClearFields(http_t *http) /* I - HTTP connection */ */ void -httpClose(http_t *http) /* I - HTTP connection */ +httpClose(http_t *http) /* I - Connection to server */ { #ifdef HAVE_GSSAPI OM_uint32 minor_status, /* Minor status code */ @@ -459,7 +459,7 @@ httpConnectEncrypt( */ int /* O - Status of call (0 = success) */ -httpDelete(http_t *http, /* I - HTTP connection */ +httpDelete(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI to delete */ { return (http_send(http, HTTP_DELETE, uri)); @@ -471,7 +471,7 @@ httpDelete(http_t *http, /* I - HTTP connection */ */ int /* O - -1 on error, 0 on success */ -httpEncryption(http_t *http, /* I - HTTP connection */ +httpEncryption(http_t *http, /* I - Connection to server */ http_encryption_t e) /* I - New encryption preference */ { DEBUG_printf(("httpEncryption(http=%p, e=%d)\n", http, e)); @@ -503,7 +503,7 @@ httpEncryption(http_t *http, /* I - HTTP connection */ */ int /* O - Error code (errno) value */ -httpError(http_t *http) /* I - HTTP connection */ +httpError(http_t *http) /* I - Connection to server */ { if (http) return (http->error); @@ -517,7 +517,7 @@ httpError(http_t *http) /* I - HTTP connection */ */ void -httpFlush(http_t *http) /* I - HTTP connection */ +httpFlush(http_t *http) /* I - Connection to server */ { char buffer[8192]; /* Junk buffer */ int blocking; /* To block or not to block */ @@ -576,7 +576,7 @@ httpFlush(http_t *http) /* I - HTTP connection */ */ int /* O - Bytes written or -1 on error */ -httpFlushWrite(http_t *http) /* I - HTTP connection */ +httpFlushWrite(http_t *http) /* I - Connection to server */ { int bytes; /* Bytes written */ @@ -602,7 +602,7 @@ httpFlushWrite(http_t *http) /* I - HTTP connection */ */ int /* O - Status of call (0 = success) */ -httpGet(http_t *http, /* I - HTTP connection */ +httpGet(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI to get */ { return (http_send(http, HTTP_GET, uri)); @@ -621,7 +621,7 @@ httpGet(http_t *http, /* I - HTTP connection */ */ char * /* O - Authorization string */ -httpGetAuthString(http_t *http) /* I - HTTP connection */ +httpGetAuthString(http_t *http) /* I - Connection to server */ { if (http) return (http->authstring); @@ -637,7 +637,7 @@ httpGetAuthString(http_t *http) /* I - HTTP connection */ */ int /* O - 1 if blocking, 0 if non-blocking */ -httpGetBlocking(http_t *http) /* I - HTTP connection */ +httpGetBlocking(http_t *http) /* I - Connection to server */ { return (http ? http->blocking : 0); } @@ -663,7 +663,7 @@ httpGetCookie(http_t *http) /* I - HTTP connecion */ */ int /* O - File descriptor or -1 if none */ -httpGetFd(http_t *http) /* I - HTTP connection */ +httpGetFd(http_t *http) /* I - Connection to server */ { return (http ? http->fd : -1); } @@ -674,7 +674,7 @@ httpGetFd(http_t *http) /* I - HTTP connection */ */ const char * /* O - Field value */ -httpGetField(http_t *http, /* I - HTTP connection */ +httpGetField(http_t *http, /* I - Connection to server */ http_field_t field) /* I - Field to get */ { if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX) @@ -705,7 +705,7 @@ httpGetField(http_t *http, /* I - HTTP connection */ */ int /* O - Content length */ -httpGetLength(http_t *http) /* I - HTTP connection */ +httpGetLength(http_t *http) /* I - Connection to server */ { /* * Get the read content length and return the 32-bit value. @@ -733,7 +733,7 @@ httpGetLength(http_t *http) /* I - HTTP connection */ */ off_t /* O - Content length */ -httpGetLength2(http_t *http) /* I - HTTP connection */ +httpGetLength2(http_t *http) /* I - Connection to server */ { DEBUG_printf(("httpGetLength2(http=%p), state=%d\n", http, http->state)); @@ -795,7 +795,7 @@ httpGetLength2(http_t *http) /* I - HTTP connection */ */ http_status_t /* O - HTTP status */ -httpGetStatus(http_t *http) /* I - HTTP connection */ +httpGetStatus(http_t *http) /* I - Connection to server */ { return (http ? http->status : HTTP_ERROR); } @@ -808,7 +808,7 @@ httpGetStatus(http_t *http) /* I - HTTP connection */ */ char * /* O - Value or NULL */ -httpGetSubField(http_t *http, /* I - HTTP connection */ +httpGetSubField(http_t *http, /* I - Connection to server */ http_field_t field, /* I - Field index */ const char *name, /* I - Name of sub-field */ char *value) /* O - Value string */ @@ -824,7 +824,7 @@ httpGetSubField(http_t *http, /* I - HTTP connection */ */ char * /* O - Value or NULL */ -httpGetSubField2(http_t *http, /* I - HTTP connection */ +httpGetSubField2(http_t *http, /* I - Connection to server */ http_field_t field, /* I - Field index */ const char *name, /* I - Name of sub-field */ char *value, /* O - Value string */ @@ -951,7 +951,7 @@ httpGetSubField2(http_t *http, /* I - HTTP connection */ char * /* O - Line or NULL */ httpGets(char *line, /* I - Line to read into */ int length, /* I - Max length of buffer */ - http_t *http) /* I - HTTP connection */ + http_t *http) /* I - Connection to server */ { char *lineptr, /* Pointer into line */ *lineend, /* End of line */ @@ -1106,7 +1106,7 @@ httpGets(char *line, /* I - Line to read into */ */ int /* O - Status of call (0 = success) */ -httpHead(http_t *http, /* I - HTTP connection */ +httpHead(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI for head */ { return (http_send(http, HTTP_HEAD, uri)); @@ -1187,7 +1187,7 @@ httpInitialize(void) */ int /* O - Status of call (0 = success) */ -httpOptions(http_t *http, /* I - HTTP connection */ +httpOptions(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI for options */ { return (http_send(http, HTTP_OPTIONS, uri)); @@ -1199,7 +1199,7 @@ httpOptions(http_t *http, /* I - HTTP connection */ */ int /* O - Status of call (0 = success) */ -httpPost(http_t *http, /* I - HTTP connection */ +httpPost(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI for post */ { return (http_send(http, HTTP_POST, uri)); @@ -1213,7 +1213,7 @@ httpPost(http_t *http, /* I - HTTP connection */ */ int /* O - Number of bytes written */ -httpPrintf(http_t *http, /* I - HTTP connection */ +httpPrintf(http_t *http, /* I - Connection to server */ const char *format, /* I - printf-style format string */ ...) /* I - Additional args as needed */ { @@ -1252,7 +1252,7 @@ httpPrintf(http_t *http, /* I - HTTP connection */ */ int /* O - Status of call (0 = success) */ -httpPut(http_t *http, /* I - HTTP connection */ +httpPut(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI to put */ { return (http_send(http, HTTP_PUT, uri)); @@ -1269,7 +1269,7 @@ httpPut(http_t *http, /* I - HTTP connection */ */ int /* O - Number of bytes read */ -httpRead(http_t *http, /* I - HTTP connection */ +httpRead(http_t *http, /* I - Connection to server */ char *buffer, /* I - Buffer for data */ int length) /* I - Maximum number of bytes */ { @@ -1284,7 +1284,7 @@ httpRead(http_t *http, /* I - HTTP connection */ */ ssize_t /* O - Number of bytes read */ -httpRead2(http_t *http, /* I - HTTP connection */ +httpRead2(http_t *http, /* I - Connection to server */ char *buffer, /* I - Buffer for data */ size_t length) /* I - Maximum number of bytes */ { @@ -1590,7 +1590,7 @@ _httpReadCDSA( ssize_t /* O - Number of bytes read or -1 on error */ _httpReadGNUTLS( - gnutls_transport_ptr ptr, /* I - HTTP connection */ + gnutls_transport_ptr ptr, /* I - Connection to server */ void *data, /* I - Buffer */ size_t length) /* I - Number of bytes to read */ { @@ -1622,7 +1622,7 @@ _httpReadGNUTLS( */ int /* O - 0 on success, non-zero on failure */ -httpReconnect(http_t *http) /* I - HTTP connection */ +httpReconnect(http_t *http) /* I - Connection to server */ { http_addrlist_t *addr; /* Connected address */ @@ -1714,7 +1714,7 @@ httpReconnect(http_t *http) /* I - HTTP connection */ */ void -httpSetAuthString(http_t *http, /* I - HTTP connection */ +httpSetAuthString(http_t *http, /* I - Connection to server */ const char *scheme, /* I - Auth scheme (NULL to clear it) */ const char *data) /* I - Auth data (NULL for none) */ { @@ -1795,7 +1795,7 @@ httpSetCookie(http_t *http, /* I - Connection */ */ void -httpSetExpect(http_t *http, /* I - HTTP connection */ +httpSetExpect(http_t *http, /* I - Connection to server */ http_status_t expect) /* I - HTTP status to expect (HTTP_CONTINUE) */ { if (http) @@ -1808,7 +1808,7 @@ httpSetExpect(http_t *http, /* I - HTTP connection */ */ void -httpSetField(http_t *http, /* I - HTTP connection */ +httpSetField(http_t *http, /* I - Connection to server */ http_field_t field, /* I - Field index */ const char *value) /* I - Value */ { @@ -1842,7 +1842,7 @@ httpSetField(http_t *http, /* I - HTTP connection */ */ void -httpSetLength(http_t *http, /* I - HTTP connection */ +httpSetLength(http_t *http, /* I - Connection to server */ size_t length) /* I - Length (0 for chunked) */ { if (!http) @@ -1867,7 +1867,7 @@ httpSetLength(http_t *http, /* I - HTTP connection */ */ int /* O - Status of call (0 = success) */ -httpTrace(http_t *http, /* I - HTTP connection */ +httpTrace(http_t *http, /* I - Connection to server */ const char *uri) /* I - URI for trace */ { return (http_send(http, HTTP_TRACE, uri)); @@ -1879,7 +1879,7 @@ httpTrace(http_t *http, /* I - HTTP connection */ */ http_status_t /* O - HTTP status */ -httpUpdate(http_t *http) /* I - HTTP connection */ +httpUpdate(http_t *http) /* I - Connection to server */ { char line[32768], /* Line from connection... */ *value; /* Pointer to value on line */ @@ -2059,7 +2059,7 @@ httpUpdate(http_t *http) /* I - HTTP connection */ */ int /* O - 1 if data is available, 0 otherwise */ -httpWait(http_t *http, /* I - HTTP connection */ +httpWait(http_t *http, /* I - Connection to server */ int msec) /* I - Milliseconds to wait */ { /* @@ -2100,7 +2100,7 @@ httpWait(http_t *http, /* I - HTTP connection */ */ int /* O - Number of bytes written */ -httpWrite(http_t *http, /* I - HTTP connection */ +httpWrite(http_t *http, /* I - Connection to server */ const char *buffer, /* I - Buffer for data */ int length) /* I - Number of bytes to write */ { @@ -2115,7 +2115,7 @@ httpWrite(http_t *http, /* I - HTTP connection */ */ ssize_t /* O - Number of bytes written */ -httpWrite2(http_t *http, /* I - HTTP connection */ +httpWrite2(http_t *http, /* I - Connection to server */ const char *buffer, /* I - Buffer for data */ size_t length) /* I - Number of bytes to write */ { @@ -2286,7 +2286,7 @@ _httpWriteCDSA( ssize_t /* O - Number of bytes written or -1 on error */ _httpWriteGNUTLS( - gnutls_transport_ptr ptr, /* I - HTTP connection */ + gnutls_transport_ptr ptr, /* I - Connection to server */ const void *data, /* I - Data buffer */ size_t length) /* I - Number of bytes to write */ { @@ -2465,7 +2465,7 @@ http_field(const char *name) /* I - String name */ */ static int /* O - Bytes read */ -http_read_ssl(http_t *http, /* I - HTTP connection */ +http_read_ssl(http_t *http, /* I - Connection to server */ char *buf, /* I - Buffer to store data */ int len) /* I - Length of buffer */ { @@ -2517,7 +2517,7 @@ http_read_ssl(http_t *http, /* I - HTTP connection */ */ static int /* O - 0 on success, non-zero on error */ -http_send(http_t *http, /* I - HTTP connection */ +http_send(http_t *http, /* I - Connection to server */ http_state_t request, /* I - Request code */ const char *uri) /* I - URI */ { @@ -2681,7 +2681,7 @@ http_send(http_t *http, /* I - HTTP connection */ */ static int /* O - Status of connection */ -http_setup_ssl(http_t *http) /* I - HTTP connection */ +http_setup_ssl(http_t *http) /* I - Connection to server */ { # ifdef HAVE_LIBSSL SSL_CTX *context; /* Context for encryption */ @@ -2836,7 +2836,7 @@ http_setup_ssl(http_t *http) /* I - HTTP connection */ */ static void -http_shutdown_ssl(http_t *http) /* I - HTTP connection */ +http_shutdown_ssl(http_t *http) /* I - Connection to server */ { # ifdef HAVE_LIBSSL SSL_CTX *context; /* Context for encryption */ @@ -2893,7 +2893,7 @@ http_shutdown_ssl(http_t *http) /* I - HTTP connection */ */ static int /* O - Status of connection */ -http_upgrade(http_t *http) /* I - HTTP connection */ +http_upgrade(http_t *http) /* I - Connection to server */ { int ret; /* Return value */ http_t myhttp; /* Local copy of HTTP data */ @@ -2975,7 +2975,7 @@ http_upgrade(http_t *http) /* I - HTTP connection */ */ static int /* O - 1 if data is available, 0 otherwise */ -http_wait(http_t *http, /* I - HTTP connection */ +http_wait(http_t *http, /* I - Connection to server */ int msec, /* I - Milliseconds to wait */ int usessl) /* I - Use SSL context? */ { @@ -3063,7 +3063,7 @@ http_wait(http_t *http, /* I - HTTP connection */ */ static int /* O - Number of bytes written */ -http_write(http_t *http, /* I - HTTP connection */ +http_write(http_t *http, /* I - Connection to server */ const char *buffer, /* I - Buffer for data */ int length) /* I - Number of bytes to write */ { @@ -3151,7 +3151,7 @@ http_write(http_t *http, /* I - HTTP connection */ */ static int /* O - Number bytes written */ -http_write_chunk(http_t *http, /* I - HTTP connection */ +http_write_chunk(http_t *http, /* I - Connection to server */ const char *buffer, /* I - Buffer to write */ int length) /* I - Length of buffer */ { @@ -3194,7 +3194,7 @@ http_write_chunk(http_t *http, /* I - HTTP connection */ */ static int /* O - Bytes written */ -http_write_ssl(http_t *http, /* I - HTTP connection */ +http_write_ssl(http_t *http, /* I - Connection to server */ const char *buf, /* I - Buffer holding data */ int len) /* I - Length of buffer */ { diff --git a/cups/ipp.c b/cups/ipp.c index 41f65c1d6..9a5e0931e 100644 --- a/cups/ipp.c +++ b/cups/ipp.c @@ -1019,7 +1019,7 @@ ippReadIO(void *src, /* I - Data source */ ipp_t *ipp) /* I - IPP data */ { int n; /* Length of data */ - unsigned char buffer[IPP_MAX_LENGTH], + unsigned char buffer[IPP_MAX_LENGTH + 1], /* Data buffer */ string[IPP_MAX_NAME], /* Small string buffer */ @@ -2415,7 +2415,8 @@ ippWriteIO(void *dst, /* I - Destination */ return (IPP_ERROR); } - DEBUG_printf(("ippWriteIO: wrote %d bytes\n", bufptr - buffer)); + DEBUG_printf(("ippWriteIO: wrote %d bytes\n", + (int)(bufptr - buffer))); /* * If blocking is disabled, stop here... @@ -2743,7 +2744,7 @@ ipp_read_http(http_t *http, /* I - Client connection */ DEBUG_printf(("ipp_read_http(http=%p, buffer=%p, length=%d)\n", - http, buffer, length)); + http, buffer, (int)length)); /* * Loop until all bytes are read... diff --git a/cups/notify.c b/cups/notify.c index 32ff2c805..03a382e6d 100644 --- a/cups/notify.c +++ b/cups/notify.c @@ -31,7 +31,7 @@ /* * 'cupsNotifySubject()' - Return the subject for the given notification message. * - * The returned string must be freed by the caller using free(). + * The returned string must be freed by the caller using @code free@. * * @since CUPS 1.2@ */ diff --git a/cups/request.c b/cups/request.c index 6544c3448..bab7c7e66 100644 --- a/cups/request.c +++ b/cups/request.c @@ -51,15 +51,15 @@ * 'cupsDoFileRequest()' - Do an IPP request with a file. * * This function sends the IPP request to the specified server, retrying - * and authenticating as necessary. The request is freed with ippDelete() + * and authenticating as necessary. The request is freed with @link ippDelete@ * after receiving a valid IPP response. */ ipp_t * /* O - Response data */ -cupsDoFileRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +cupsDoFileRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - HTTP resource for POST */ - const char *filename) /* I - File to send or NULL for none */ + const char *filename) /* I - File to send or @code NULL@ for none */ { ipp_t *response; /* IPP response data */ int infile; /* Input file */ @@ -110,7 +110,7 @@ cupsDoFileRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ ipp_t * /* O - Response data */ -cupsDoIORequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +cupsDoIORequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - HTTP resource for POST */ int infile, /* I - File to read from or -1 for none */ @@ -247,6 +247,9 @@ cupsDoIORequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ status = http->status; } + if (status == HTTP_FORBIDDEN) + break; + if (response) { if (outfile >= 0) @@ -289,7 +292,7 @@ cupsDoIORequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ */ ipp_t * /* O - Response data */ -cupsDoRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +cupsDoRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource) /* I - HTTP resource for POST */ { @@ -307,8 +310,8 @@ cupsDoRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ * @since CUPS 1.4@ */ -ipp_t * /* O - Response or NULL on HTTP error */ -cupsGetResponse(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +ipp_t * /* O - Response or @code NULL@ on HTTP error */ +cupsGetResponse(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource) /* I - HTTP resource for POST */ { http_status_t status; /* HTTP status */ @@ -399,10 +402,14 @@ cupsGetResponse(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ * See if we can do authentication... */ + int auth_result; + DEBUG_puts("cupsGetResponse: Need authorization..."); - if (!cupsDoAuthentication(http, "POST", resource)) + if ((auth_result =cupsDoAuthentication(http, "POST", resource)) == 0) httpReconnect(http); + else if (auth_result < 0) + http->status = status = HTTP_FORBIDDEN; } #ifdef HAVE_SSL @@ -449,7 +456,7 @@ cupsGetResponse(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ ssize_t /* O - Bytes read, 0 on EOF, -1 on error */ cupsReadResponseData( - http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ + http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ char *buffer, /* I - Buffer to use */ size_t length) /* I - Number of bytes to read */ { @@ -492,7 +499,7 @@ cupsReadResponseData( */ http_status_t /* O - Initial HTTP status */ -cupsSendRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ +cupsSendRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - Resource path */ size_t length) /* I - Length of data to follow or CUPS_LENGTH_VARIABLE */ @@ -662,15 +669,15 @@ cupsSendRequest(http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ /* * 'cupsWriteRequestData()' - Write additional data after an IPP request. * - * This function is used after cupsSendRequest() or cupsStartDocument() - * to provide a PPD or document file as needed. + * This function is used after @link cupsSendRequest@ to provide a PPD and + * after @link cupsStartDocument@ to provide a document file. * * @since CUPS 1.4@ */ -http_status_t /* O - HTTP_CONTINUE if OK or HTTP status on error */ +http_status_t /* O - @code HTTP_CONTINUE@ if OK or HTTP status on error */ cupsWriteRequestData( - http_t *http, /* I - HTTP connection or CUPS_HTTP_DEFAULT */ + http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *buffer, /* I - Bytes to write */ size_t length) /* I - Number of bytes to write */ { diff --git a/cups/snmp.c b/cups/snmp.c index 1441b7f18..054b633e1 100644 --- a/cups/snmp.c +++ b/cups/snmp.c @@ -313,7 +313,7 @@ cupsSNMPOpen(int family) /* I - Address family - @code AF_INET@ or @code AF_INE cups_snmp_t * /* O - SNMP packet or @code NULL@ if none */ cupsSNMPRead(int fd, /* I - SNMP socket file descriptor */ cups_snmp_t *packet, /* I - SNMP packet buffer */ - int msec) /* I - Timeout in milliseconds */ + double timeout) /* I - Timeout in seconds */ { unsigned char buffer[CUPS_SNMP_MAX_PACKET]; /* Data packet */ @@ -333,7 +333,7 @@ cupsSNMPRead(int fd, /* I - SNMP socket file descriptor */ * Optionally wait for a response... */ - if (msec >= 0) + if (timeout >= 0.0) { int ready; /* Data ready on socket? */ #ifdef HAVE_POLL @@ -342,21 +342,22 @@ cupsSNMPRead(int fd, /* I - SNMP socket file descriptor */ pfd.fd = fd; pfd.events = POLLIN; - while ((ready = poll(&pfd, 1, msec)) < 0 && errno == EINTR); + while ((ready = poll(&pfd, 1, (int)(timeout * 1000.0))) < 0 && + errno == EINTR); #else fd_set input_set; /* select() input set */ - struct timeval timeout; /* select() timeout */ + struct timeval stimeout; /* select() timeout */ do { FD_ZERO(&input_set); FD_SET(fd, &input_set); - timeout.tv_sec = msec / 1000; - timeout.tv_usec = (msec % 1000) * 1000; + stimeout.tv_sec = (int)timeout; + stimeout.tv_usec = (int)((timeout - stimeout.tv_usec) * 1000000); - ready = select(fd + 1, &input_set, NULL, NULL, &timeout); + ready = select(fd + 1, &input_set, NULL, NULL, &stimeout); } # ifdef WIN32 while (ready < 0 && WSAGetLastError() == WSAEINTR); @@ -425,6 +426,9 @@ cupsSNMPSetDebug(int level) /* I - 1 to enable debug output, 0 otherwise */ * * The array pointed to by "prefix" is terminated by the value -1. * + * If "timeout" is negative, @code cupsSNMPWalk@ will wait for a response + * indefinitely. + * * @since CUPS 1.4@ */ @@ -434,7 +438,7 @@ cupsSNMPWalk(int fd, /* I - SNMP socket */ int version, /* I - SNMP version */ const char *community, /* I - Community name */ const int *prefix, /* I - OID prefix */ - int msec, /* I - Timeout for each response in milliseconds */ + double timeout, /* I - Timeout for each response in seconds */ cups_snmp_cb_t cb, /* I - Function to call for each response */ void *data) /* I - User data pointer that is passed to the callback function */ { @@ -466,7 +470,7 @@ cupsSNMPWalk(int fd, /* I - SNMP socket */ packet.object_name)) return (-1); - if (!cupsSNMPRead(fd, &packet, msec)) + if (!cupsSNMPRead(fd, &packet, timeout)) return (-1); if (!cupsSNMPIsOIDPrefixed(&packet, prefix)) diff --git a/cups/snmp.h b/cups/snmp.h index 9f1d8dc19..8e5dfa56d 100644 --- a/cups/snmp.h +++ b/cups/snmp.h @@ -119,13 +119,13 @@ extern int cupsSNMPIsOID(cups_snmp_t *packet, const int *oid) extern int cupsSNMPIsOIDPrefixed(cups_snmp_t *packet, const int *prefix) _CUPS_API_1_4; extern int cupsSNMPOpen(int family) _CUPS_API_1_4; -extern cups_snmp_t *cupsSNMPRead(int fd, cups_snmp_t *packet, int msec) - _CUPS_API_1_4; +extern cups_snmp_t *cupsSNMPRead(int fd, cups_snmp_t *packet, + double timeout) _CUPS_API_1_4; extern void cupsSNMPSetDebug(int level) _CUPS_API_1_4; extern int cupsSNMPWalk(int fd, http_addr_t *address, int version, const char *community, const int *prefix, - int msec, cups_snmp_cb_t cb, void *data) - _CUPS_API_1_4; + double timeout, cups_snmp_cb_t cb, + void *data) _CUPS_API_1_4; extern int cupsSNMPWrite(int fd, http_addr_t *address, int version, const char *community, cups_asn1_t request_type, diff --git a/cups/tempfile.c b/cups/tempfile.c index 30cbc0cae..f25886461 100644 --- a/cups/tempfile.c +++ b/cups/tempfile.c @@ -161,7 +161,7 @@ cupsTempFd(char *filename, /* I - Pointer to buffer */ * @deprecated@ */ -char * /* O - Filename or NULL on error */ +char * /* O - Filename or @code NULL@ on error */ cupsTempFile(char *filename, /* I - Pointer to buffer */ int len) /* I - Size of buffer */ { @@ -209,7 +209,7 @@ cupsTempFile(char *filename, /* I - Pointer to buffer */ * @since CUPS 1.2@ */ -cups_file_t * /* O - CUPS file or NULL on error */ +cups_file_t * /* O - CUPS file or @code NULL@ on error */ cupsTempFile2(char *filename, /* I - Pointer to buffer */ int len) /* I - Size of buffer */ { diff --git a/cups/testsnmp.c b/cups/testsnmp.c index e13b23847..eb47254a1 100644 --- a/cups/testsnmp.c +++ b/cups/testsnmp.c @@ -268,7 +268,7 @@ show_oid(int fd, /* I - SNMP socket */ printf(".%d", oid[i]); puts("):"); - if (cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5000, + if (cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5.0, print_packet, NULL) < 0) { printf("FAIL (%s)\n", strerror(errno)); @@ -291,9 +291,9 @@ show_oid(int fd, /* I - SNMP socket */ puts("PASS"); - fputs("cupsSNMPRead(5000): ", stdout); + fputs("cupsSNMPRead(5.0): ", stdout); - if (!cupsSNMPRead(fd, &packet, 5000)) + if (!cupsSNMPRead(fd, &packet, 5.0)) { puts("FAIL (timeout)"); return (0); diff --git a/cups/usersys.c b/cups/usersys.c index c8d2b2864..28b40d0be 100644 --- a/cups/usersys.c +++ b/cups/usersys.c @@ -54,7 +54,7 @@ static cups_file_t *cups_open_client_conf(void); * 'cupsEncryption()' - Get the default encryption settings. * * The default encryption setting comes from the CUPS_ENCRYPTION - * environment variable, then the ~/.cupsrc file, and finally the + * environment variable, then the ~/.cups/client.conf file, and finally the * /etc/cups/client.conf file. If not set, the default is * @code HTTP_ENCRYPT_IF_REQUESTED@. */ diff --git a/cups/util.c b/cups/util.c index eade62f08..a572e6fa9 100644 --- a/cups/util.c +++ b/cups/util.c @@ -93,7 +93,7 @@ static int cups_get_printer_uri(http_t *http, const char *name, int /* O - 1 on success, 0 on failure */ cupsCancelJob(const char *name, /* I - Name of printer or class */ - int job_id) /* I - Job ID */ + int job_id) /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */ { return (cupsCancelJob2(CUPS_HTTP_DEFAULT, name, job_id, 0) < IPP_REDIRECTION_OTHER_SITE); @@ -116,9 +116,9 @@ cupsCancelJob(const char *name, /* I - Name of printer or class */ */ ipp_status_t /* O - IPP status */ -cupsCancelJob2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsCancelJob2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Name of printer or class */ - int job_id, /* I - Job ID or 0 for the current job, -1 for all jobs */ + int job_id, /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */ int purge) /* I - 1 to purge, 0 to cancel */ { char uri[HTTP_MAX_URI]; /* Job/printer URI */ @@ -192,18 +192,21 @@ cupsCancelJob2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAU /* - * 'cupsCreateJob()' - Create an empty job. + * 'cupsCreateJob()' - Create an empty job for streaming. * - * Submit files for printing to the job using the @link cupsStartDocument@, - * @link cupsWriteRequestData@, and @link cupsFinishDocument@ functions. + * Use this function when you want to stream print data using the + * @link cupsStartDocument@, @link cupsWriteRequestData@, and + * @link cupsFinishDocument@ functions. If you have one or more files to + * print, use the @link cupsPrintFile2@ or @link cupsPrintFiles2@ function + * instead. * * @since CUPS 1.4@ */ int /* O - Job ID or 0 on error */ cupsCreateJob( - http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name, /* I - Printer or class name */ + http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name, /* I - Destination name */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ @@ -281,8 +284,8 @@ cupsCreateJob( */ ipp_status_t /* O - Status of document submission */ -cupsFinishDocument(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name) /* I - Printer or class name */ +cupsFinishDocument(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name) /* I - Destination name */ { char resource[1024]; /* Printer resource */ @@ -450,7 +453,7 @@ cupsGetDefault(void) */ const char * /* O - Default printer or @code NULL@ */ -cupsGetDefault2(http_t *http) /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsGetDefault2(http_t *http) /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ @@ -522,7 +525,7 @@ cupsGetDefault2(http_t *http) /* I - HTTP connection or @code CUPS_HTTP_DEFAULT int /* O - Number of jobs */ cupsGetJobs(cups_job_t **jobs, /* O - Job data */ - const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for mydest */ + const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */ int myjobs, /* I - 0 = all users, 1 = mine */ int whichjobs) /* I - @code CUPS_WHICHJOBS_ALL@, @code CUPS_WHICHJOBS_ACTIVE@, or @code CUPS_WHICHJOBS_COMPLETED@ */ { @@ -547,9 +550,9 @@ cupsGetJobs(cups_job_t **jobs, /* O - Job data */ */ int /* O - Number of jobs */ -cupsGetJobs2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsGetJobs2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ cups_job_t **jobs, /* O - Job data */ - const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for mydest */ + const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */ int myjobs, /* I - 0 = all users, 1 = mine */ int whichjobs) /* I - @code CUPS_WHICHJOBS_ALL@, @code CUPS_WHICHJOBS_ACTIVE@, or @code CUPS_WHICHJOBS_COMPLETED@ */ { @@ -810,10 +813,13 @@ cupsGetJobs2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAUL * * For classes, @code cupsGetPPD@ returns the PPD file for the first printer * in the class. + * + * The returned filename is stored in a static buffer and is overwritten with + * each call to @code cupsGetPPD@ or @link cupsGetPPD2@. */ const char * /* O - Filename for PPD file */ -cupsGetPPD(const char *name) /* I - Printer name */ +cupsGetPPD(const char *name) /* I - Destination name */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ time_t modtime = 0; /* Modification time */ @@ -839,12 +845,15 @@ cupsGetPPD(const char *name) /* I - Printer name */ * For classes, @code cupsGetPPD2@ returns the PPD file for the first printer * in the class. * + * The returned filename is stored in a static buffer and is overwritten with + * each call to @link cupsGetPPD@ or @code cupsGetPPD2@. + * * @since CUPS 1.1.21@ */ const char * /* O - Filename for PPD file */ -cupsGetPPD2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name) /* I - Printer name */ +cupsGetPPD2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name) /* I - Destination name */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ time_t modtime = 0; /* Modification time */ @@ -878,11 +887,13 @@ cupsGetPPD2(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT * * For classes, @code cupsGetPPD3@ returns the PPD file for the first printer * in the class. + * + * @since CUPS 1.4@ */ http_status_t /* O - HTTP status */ cupsGetPPD3(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name, /* I - Printer name */ + const char *name, /* I - Destination name */ time_t *modtime, /* IO - Modification time */ char *buffer, /* I - Filename buffer */ size_t bufsize) /* I - Size of filename buffer */ @@ -1181,7 +1192,7 @@ cupsGetPrinters(char ***printers) /* O - Printers */ */ char * /* O - Name of PPD file or @code NULL@ on error */ -cupsGetServerPPD(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ +cupsGetServerPPD(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name) /* I - Name of PPD file ("ppd-name") */ { int fd; /* PPD file descriptor */ @@ -1271,7 +1282,7 @@ cupsLastErrorString(void) */ int /* O - Job ID or 0 on error */ -cupsPrintFile(const char *name, /* I - Printer or class name */ +cupsPrintFile(const char *name, /* I - Destination name */ const char *filename, /* I - File to print */ const char *title, /* I - Title of job */ int num_options,/* I - Number of options */ @@ -1295,8 +1306,8 @@ cupsPrintFile(const char *name, /* I - Printer or class name */ int /* O - Job ID or 0 on error */ cupsPrintFile2( - http_t *http, /* I - HTTP connection */ - const char *name, /* I - Printer or class name */ + http_t *http, /* I - Connection to server */ + const char *name, /* I - Destination name */ const char *filename, /* I - File to print */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ @@ -1318,7 +1329,7 @@ cupsPrintFile2( int /* O - Job ID or 0 on error */ cupsPrintFiles( - const char *name, /* I - Printer or class name */ + const char *name, /* I - Destination name */ int num_files, /* I - Number of files */ const char **files, /* I - File(s) to print */ const char *title, /* I - Title of job */ @@ -1348,8 +1359,8 @@ cupsPrintFiles( int /* O - Job ID or 0 on error */ cupsPrintFiles2( - http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name, /* I - Printer or class name */ + http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name, /* I - Destination name */ int num_files, /* I - Number of files */ const char **files, /* I - File(s) to print */ const char *title, /* I - Title of job */ @@ -1459,8 +1470,8 @@ cupsPrintFiles2( http_status_t /* O - HTTP status of request */ cupsStartDocument( - http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ - const char *name, /* I - Printer or class name */ + http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ + const char *name, /* I - Destination name */ int job_id, /* I - Job ID from @link cupsCreateJob@ */ const char *docname, /* I - Name of document */ const char *format, /* I - MIME type or @code CUPS_FORMAT_foo@ */ @@ -1589,7 +1600,7 @@ _cupsConnect(void) static int /* O - 1 on success, 0 on failure */ cups_get_printer_uri( - http_t *http, /* I - HTTP connection */ + http_t *http, /* I - Connection to server */ const char *name, /* I - Name of printer or class */ char *host, /* I - Hostname buffer */ int hostsize, /* I - Size of hostname buffer */ diff --git a/doc/Makefile b/doc/Makefile index 197344c15..08c5d8cc6 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -159,12 +159,10 @@ install: all $(INSTALL_LANGUAGES) install-languages: for lang in $(LANGUAGES); do \ - $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \ - if test -f $$lang/index.html; then \ - $(INSTALL_MAN) $$lang/index.html $(DOCDIR)/$$lang; \ - fi; \ - if test -f $$lang/cups.css; then \ - $(INSTALL_MAN) $$lang/cups.css $(DOCDIR)/$$lang; \ + if test -d $$lang; then \ + $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \ + $(INSTALL_MAN) $$lang/index.html $(DOCDIR)/$$lang 2>/dev/null || true; \ + $(INSTALL_MAN) $$lang/cups.css $(DOCDIR)/$$lang 2>/dev/null || true; \ fi; \ done diff --git a/doc/cups-printable.css b/doc/cups-printable.css index 83693894d..5256cae38 100644 --- a/doc/cups-printable.css +++ b/doc/cups-printable.css @@ -47,13 +47,12 @@ BLOCKQUOTE { } A:link, A:visited { + font-weight: normal; text-decoration: none; - font-weight: bold; } A:link:hover, A:visited:hover, A:active { text-decoration: underline; - font-weight: bold; } SUB, SUP { diff --git a/doc/cups.css b/doc/cups.css index 8c522609e..77fefb044 100644 --- a/doc/cups.css +++ b/doc/cups.css @@ -66,6 +66,7 @@ A:link:hover IMG { } A:link, A:visited { + font-weight: normal; text-decoration: none; color: #000099; } diff --git a/doc/help/api-array.html b/doc/help/api-array.html index e902ed3fc..e29419d39 100644 --- a/doc/help/api-array.html +++ b/doc/help/api-array.html @@ -55,13 +55,12 @@ BLOCKQUOTE { } A:link, A:visited { + font-weight: normal; text-decoration: none; - font-weight: bold; } A:link:hover, A:visited:hover, A:active { text-decoration: underline; - font-weight: bold; } SUB, SUP { diff --git a/doc/help/api-cups.html b/doc/help/api-cups.html index 36f731675..654edaf27 100644 --- a/doc/help/api-cups.html +++ b/doc/help/api-cups.html @@ -55,13 +55,12 @@ BLOCKQUOTE { } A:link, A:visited { + font-weight: normal; text-decoration: none; - font-weight: bold; } A:link:hover, A:visited:hover, A:active { text-decoration: underline; - font-weight: bold; } SUB, SUP { @@ -297,6 +296,7 @@ div.contents ul.subcontents li {
Cups
- -CupsJob - -CupsPrinter - -IPP - -IPPAttribute - -IPPDefs - -IPPError - -IPPHttp - -IPPMD5 - -IPPRequest - -IPPStatus - -IPPURLConnection - -IPPValue - - |
-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.Cups --
-
-Constructor Summary | -|
Cups()
-
-- Void constructor. |
-|
Cups(java.net.URL p_url)
-
-- Constructor using a URL . |
-
-Method Summary | -|
- int |
-cupsCancelJob(java.lang.String printer_name,
- int p_job_id,
- java.lang.String p_user_name)
-
-- Cancel a job - send a job cancel request to the server. |
-
- java.lang.String |
-cupsGetDefault()
-
-- Get default destination. |
-
- CupsJob[] |
-cupsGetJobs(boolean showMyJobs,
- boolean showCompleted)
-
-- Get a list of jobs. |
-
- java.util.List |
-cupsGetPrinterAttributes(java.lang.String printer_name)
-
-- Get printer attributes |
-
- java.lang.String[] |
-cupsGetPrinters()
-
-- Get a list of printers. |
-
- java.util.List |
-cupsGetPrinterStatus(java.lang.String printer_name)
-
-- |
-
- CupsJob |
-cupsPrintFile(java.lang.String p_filename,
- IPPAttribute[] p_attrs)
-
-- Print a file. |
-
- boolean |
-doRequest()
-
-- Do a CUPS request to the server. |
-
- boolean |
-doRequest(java.io.File file)
-
-- Send a FILE to the CUPS server. |
-
- boolean |
-doRequest(java.lang.String from)
-
-- |
-
- boolean |
-getEncrypt()
-
-- Get the value of the encrypt member. |
-
- void |
-setDest(java.lang.String p_dest)
-
-- Set the value of the dest member. |
-
- void |
-setEncrypt(boolean p_encrypt)
-
-- Set the value of the encrypt member. |
-
- void |
-setInstance(java.lang.String p_instance)
-
-- Set the value of the instance member. |
-
- void |
-setPasswd(java.lang.String p_passwd)
-
-- Set the value of the passwd member. |
-
- void |
-setPath(java.lang.String p_path)
-
-- Set the value of the path member. |
-
- void |
-setPort(int p_port)
-
-- Set the value of the port member. |
-
- void |
-setProtocol(java.lang.String p_protocol)
-
-- Set the value of the protocol member. |
-
- void |
-setServer(java.lang.String p_server)
-
-- Set the value of the server member. |
-
- void |
-setUser(java.lang.String p_user)
-
-- Set the value of the user member. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public Cups()-
-public Cups(java.net.URL p_url)-
URL
.p_url
- A URL
object.-Method Detail | -
-public void setProtocol(java.lang.String p_protocol)-
protocol
member. Valid values
- are ipp or http.p_protocol
- String with protocol.-public void setServer(java.lang.String p_server)-
server
member. This is an
- IP address or a hostname.p_server
- IP address or hostname.-public void setPort(int p_port)-
port
member.p_port
- Port number.-public void setUser(java.lang.String p_user)-
user
member.p_user
- User name.-public void setPasswd(java.lang.String p_passwd)-
passwd
member.p_passwd
- Password.-public void setDest(java.lang.String p_dest)-
dest
member.p_dest
- Destination.-public void setInstance(java.lang.String p_instance)-
instance
member.p_instance
- Instance.-public void setEncrypt(boolean p_encrypt)-
encrypt
member.p_enrypt
- Yes or no.-public boolean getEncrypt()-
encrypt
member.boolean
Encryption on or off.-public void setPath(java.lang.String p_path)-
path
member. This is the
- path that will be used in the POST method.p_path
- Path on server.-public boolean doRequest(java.lang.String from) - throws java.io.IOException-
-public boolean doRequest() - throws java.io.IOException-
p_dest
- Destination name.boolean
True on success, false otherwise-public boolean doRequest(java.io.File file) - throws java.io.IOException-
file
- File to send.boolean
True on success, false otherwise-public CupsJob[] cupsGetJobs(boolean showMyJobs, - boolean showCompleted) - throws java.io.IOException-
showMyJobs
- Show only jobs for user.showCompleted
- Show completed OR active jobs.CupsJob[]
Array of job objects, or null.-public java.lang.String[] cupsGetPrinters() - throws java.io.IOException-
String[]
Array of printers, or null.-public java.lang.String cupsGetDefault() - throws java.io.IOException-
String
Name of default printer, or null.-public java.util.List cupsGetPrinterAttributes(java.lang.String printer_name) - throws java.io.IOException-
printer_name
- Name of printer to get info for.List
List of attributes.CupsPrinter
-public CupsJob cupsPrintFile(java.lang.String p_filename, - IPPAttribute[] p_attrs) - throws java.io.IOException-
p_filename
- Path of file to print.p_attrs[]
- Array of print job attributes.CupsJob
Object with job info.CupsJob
-public int cupsCancelJob(java.lang.String printer_name, - int p_job_id, - java.lang.String p_user_name) - throws java.io.IOException-
printer_name
- Destination.p_job_id
- ID of job.p_user_name
- Requesting user name.-public java.util.List cupsGetPrinterStatus(java.lang.String printer_name) - throws java.io.IOException-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.CupsJob --
-
-Field Summary | -|
- java.lang.String |
-document_format
-
-- |
-
- java.lang.String |
-job_hold_until
-
-- |
-
- int |
-job_id
-
-- |
-
- int |
-job_k_octets
-
-- |
-
- int |
-job_media_sheets_completed
-
-- |
-
- java.lang.String |
-job_more_info
-
-- |
-
- java.lang.String |
-job_name
-
-- |
-
- java.lang.String |
-job_originating_host_name
-
-- |
-
- java.lang.String |
-job_originating_user_name
-
-- |
-
- long |
-job_printer_up_time
-
-- |
-
- java.lang.String |
-job_printer_uri
-
-- |
-
- int |
-job_priority
-
-- |
-
- java.lang.String |
-job_sheets
-
-- |
-
- int |
-job_state
-
-- |
-
- java.lang.String |
-job_state_reasons
-
-- |
-
- java.lang.String |
-job_uri
-
-- |
-
- long |
-time_at_completed
-
-- |
-
- long |
-time_at_creation
-
-- |
-
- long |
-time_at_processing
-
-- |
-
-Constructor Summary | -|
CupsJob()
-
-- Constructor - set some default values. |
-
-Method Summary | -|
- java.lang.String |
-jobStatusText()
-
-- Convert a job status to a string. |
-
- void |
-updateAttribute(IPPAttribute a)
-
-- Process an attribute from a cups.doRequest() call - and move the value into a local member. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Field Detail | -
-public int job_id-
-public java.lang.String job_more_info-
-public java.lang.String job_uri-
-public java.lang.String job_printer_uri-
-public long job_printer_up_time-
-public java.lang.String job_name-
-public java.lang.String job_originating_user_name-
-public java.lang.String document_format-
-public java.lang.String job_originating_host_name-
-public int job_priority-
-public int job_state-
-public int job_media_sheets_completed-
-public int job_k_octets-
-public long time_at_creation-
-public long time_at_processing-
-public long time_at_completed-
-public java.lang.String job_hold_until-
-public java.lang.String job_sheets-
-public java.lang.String job_state_reasons-
-Constructor Detail | -
-public CupsJob()-
-Method Detail | -
-public void updateAttribute(IPPAttribute a)-
IPPDefs
,
-IPPValues
,
-IPPAttributes
-public java.lang.String jobStatusText()-
IPPDefs
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.CupsPrinter --
-
-Constructor Summary | -|
CupsPrinter(Cups c)
-
-- Constructor. |
-|
CupsPrinter(Cups c,
- java.lang.String name)
-
-- Constructor with name. |
-
-Method Summary | -|
- boolean |
-getAttributes(Cups c)
-
-- Get the printer's attributes. |
-
- int |
-getCopiesDefault()
-
-- Get the printer number of copies default. |
-
- java.lang.String |
-getJobSheetsDefault()
-
-- Get the default job sheets. |
-
- java.lang.String[] |
-getJobSheetsSupported()
-
-- Get the printer job sheets supported. |
-
- java.lang.String |
-getLocation()
-
-- Get the printer location. |
-
- int |
-getLowerCopiesSupported()
-
-- Get the printer lower copies supported. |
-
- java.lang.String |
-getMakeAndModel()
-
-- Get the printer make and model. |
-
- int |
-getOrientationDefault()
-
-- Get the default orientation. |
-
- int[] |
-getOrientationSupported()
-
-- Get the printer orientation supported. |
-
- boolean |
-getPageRangesSupported()
-
-- Get whether the printer supports page ranges. |
-
- java.lang.String |
-getPrinterName()
-
-- Get the printer name. |
-
- java.lang.String |
-getStateReasons()
-
-- Get the printer state reasons. |
-
- java.lang.String |
-getStateText()
-
-- Get the printer state text. |
-
- boolean |
-getStatus(Cups c)
-
-- Get the printer's status. |
-
- int |
-getUpperCopiesSupported()
-
-- Get the printer upper copies supported. |
-
- void |
-setDefaults()
-
-- Initialize the members with mostly sane values. |
-
- void |
-updateAttribute(IPPAttribute a)
-
-- Process an attribute from the cups.doRequest() method and move - the values into local members. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public CupsPrinter(Cups c)-
c
- Cups object.Cups
-public CupsPrinter(Cups c, - java.lang.String name)-
c
- Cups object.name
- Name of printer.Cups
-Method Detail | -
-public void setDefaults()-
-public boolean getStatus(Cups c)-
c
- Cups object.Boolean
True on success.Cups
-public boolean getAttributes(Cups c)-
c
- Cups object.Boolean
True on success.Cups
-public void updateAttribute(IPPAttribute a)-
a
- IPPAttribute.IPPAttributes
,
-IPPValues
-public java.lang.String getPrinterName()-
String
Printer Name.-public java.lang.String getStateText()-
String
State text.-public java.lang.String getStateReasons()-
String
State reason.-public java.lang.String getLocation()-
String
State location.-public java.lang.String getMakeAndModel()-
String
Make and model.-public java.lang.String getJobSheetsDefault()-
String
Default job sheets.-public java.lang.String[] getJobSheetsSupported()-
String[]
Array of supported job sheets.-public int getOrientationDefault()-
int
Default page orientation.-public int[] getOrientationSupported()-
int[]
Array of supported orientations.-public int getLowerCopiesSupported()-
int
Lower of the range.-public int getUpperCopiesSupported()-
int
Upper of the range.-public int getCopiesDefault()-
int
Default number of copies.-public boolean getPageRangesSupported()-
boolean
True or false.
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPP --
-An IPP
object is used to hold the various
- attributes and status of an ipp request..
-
-
-Field Summary | -|
- java.util.List |
-attrs
-
-- |
-
- IPPRequest |
-request
-
-- |
-
- IPPStatus |
-status
-
-- |
-
-Constructor Summary | -|
IPP()
-
-- |
-
-Method Summary | -|
- boolean |
-addAttribute(IPPAttribute a)
-
-- Add an attribute to the attibutes list - for later parsing. |
-
- void |
-dump_response()
-
-- |
-
- IPPAttribute |
-getCurrentAttribute()
-
-- Get the current attribute pointed at by - current . |
-
- IPPAttribute |
-ippFindAttribute(java.lang.String p_name,
- int p_type)
-
-- Find the named attribute of the correct type. |
-
- IPPAttribute |
-ippFindNextAttribute(java.lang.String p_name,
- int p_type)
-
-- Find the named attribute of the correct type. |
-
- void |
-setRequestID(short p_id)
-
-- Set the IPP request ID. |
-
- void |
-setRequestOperationID(short p_operation_id)
-
-- Set the IPP operation ID. |
-
- int |
-sizeInBytes()
-
-- Get the size in bytes of an IPP request. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Field Detail | -
-public IPPRequest request-
-public IPPStatus status-
-public java.util.List attrs-
-Constructor Detail | -
-public IPP()-
-Method Detail | -
-public boolean addAttribute(IPPAttribute a)-
a
- IPPAttribute
to add.true
always returns true
- for now.IPPAttribute
,
-IPPValue
-public IPPAttribute getCurrentAttribute()-
current
.IPPAttribute
Return the current attribute.-public IPPAttribute ippFindAttribute(java.lang.String p_name, - int p_type)-
p_name
- String
containing the name.p_type
- int
attribute type.IPPAttribute
Matching attribute if found.-public IPPAttribute ippFindNextAttribute(java.lang.String p_name, - int p_type)-
p_name
- String
containing the name.p_type
- int
attribute type.IPPAttribute
Matching attribute if found.-public int sizeInBytes()-
IPP
request.int
Number of bytes for the request.-public void setRequestID(short p_id)-
IPP
request ID.p_id
- short
request id.-public void setRequestOperationID(short p_operation_id)-
IPP
operation ID.p_operation_id
- short
operation id.-public void dump_response()-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPAttribute --
-
-Constructor Summary | -|
IPPAttribute(int p_group_tag,
- int p_value_tag,
- java.lang.String p_name)
-
-- |
-
-Method Summary | -|
- boolean |
-addBoolean(boolean p_bool)
-
-- |
-
- boolean |
-addBooleans(boolean[] p_bools)
-
-- |
-
- boolean |
-addDate(char[] p_date)
-
-- |
-
- boolean |
-addEnum(int p_int)
-
-- |
-
- boolean |
-addInteger(int p_int)
-
-- |
-
- boolean |
-addIntegers(int[] p_ints)
-
-- |
-
- boolean |
-addRange(int p_lower,
- int p_upper)
-
-- |
-
- boolean |
-addRanges(int[] p_lower,
- int[] p_upper)
-
-- |
-
- boolean |
-addResolution(byte p_units,
- int p_xres,
- int p_yres)
-
-- |
-
- boolean |
-addResolutions(byte p_units,
- int[] p_xres,
- int[] p_yres)
-
-- |
-
- boolean |
-addSeparator()
-
-- |
-
- boolean |
-addString(java.lang.String p_charset,
- java.lang.String p_text)
-
-- |
-
- boolean |
-addStrings(java.lang.String p_charset,
- java.lang.String[] p_texts)
-
-- |
-
- void |
-dump_values()
-
-- |
-
- byte[] |
-getBytes(int sz,
- int last_group)
-
-- |
-
- int |
-sizeInBytes(int last_group)
-
-- |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public IPPAttribute(int p_group_tag, - int p_value_tag, - java.lang.String p_name)-
-Method Detail | -
-public boolean addBoolean(boolean p_bool)-
-public boolean addBooleans(boolean[] p_bools)-
-public boolean addEnum(int p_int)-
-public boolean addInteger(int p_int)-
-public boolean addIntegers(int[] p_ints)-
-public boolean addString(java.lang.String p_charset, - java.lang.String p_text)-
-public boolean addStrings(java.lang.String p_charset, - java.lang.String[] p_texts)-
-public boolean addDate(char[] p_date)-
-public boolean addRange(int p_lower, - int p_upper)-
-public boolean addRanges(int[] p_lower, - int[] p_upper)-
-public boolean addResolution(byte p_units, - int p_xres, - int p_yres)-
-public boolean addResolutions(byte p_units, - int[] p_xres, - int[] p_yres)-
-public boolean addSeparator()-
-public int sizeInBytes(int last_group)-
-public byte[] getBytes(int sz, - int last_group)-
-public void dump_values()-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPDefs --
-IPPDefs
is a collection of constants for use
- in the IPP
and CUPS
classes.
-
-
-Field Summary | -|
-static int |
-ACTIVATE_PRINTER
-
-- |
-
-static int |
-ATTRIBUTE
-
-- |
-
-static int |
-ATTRIBUTES
-
-- |
-
-static int |
-ATTRIBUTES_NOT_SETTABLE
-
-- |
-
-static int |
-BAD_REQUEST
-
-- |
-
-static int |
-CANCEL_CURRENT_JOB
-
-- |
-
-static int |
-CANCEL_JOB
-
-- |
-
-static int |
-CANCEL_SUBSCRIPTION
-
-- |
-
-static int |
-CHARSET
-
-- |
-
-static int |
-COMPRESSION_ERROR
-
-- |
-
-static int |
-COMPRESSION_NOT_SUPPORTED
-
-- |
-
-static int |
-CONFLICT
-
-- |
-
-static int |
-CREATE_JOB
-
-- |
-
-static int |
-CREATE_JOB_SUBSCRIPTION
-
-- |
-
-static int |
-CREATE_PRINTER_SUBSCRIPTION
-
-- |
-
-static int |
-CUPS_ACCEPT_JOBS
-
-- |
-
-static int |
-CUPS_ADD_CLASS
-
-- |
-
-static int |
-CUPS_ADD_DEVICE
-
-- |
-
-static int |
-CUPS_ADD_PRINTER
-
-- |
-
-static int |
-CUPS_DELETE_CLASS
-
-- |
-
-static int |
-CUPS_DELETE_DEVICE
-
-- |
-
-static int |
-CUPS_DELETE_PRINTER
-
-- |
-
-static int |
-CUPS_GET_CLASSES
-
-- |
-
-static int |
-CUPS_GET_DEFAULT
-
-- |
-
-static int |
-CUPS_GET_DEVICES
-
-- |
-
-static int |
-CUPS_GET_PPDS
-
-- |
-
-static int |
-CUPS_GET_PRINTERS
-
-- |
-
-static int |
-CUPS_MOVE_JOB
-
-- |
-
-static int |
-CUPS_REJECT_JOBS
-
-- |
-
-static int |
-CUPS_SET_DEFAULT
-
-- |
-
-static int |
-DATA
-
-- |
-
-static int |
-DEACTIVATE_PRINTER
-
-- |
-
-static int |
-DEVICE_ERROR
-
-- |
-
-static int |
-DISABLE_PRINTER
-
-- |
-
-static int |
-DOCUMENT_ACCESS_ERROR
-
-- |
-
-static int |
-DOCUMENT_FORMAT
-
-- |
-
-static int |
-DOCUMENT_FORMAT_ERROR
-
-- |
-
-static int |
-ENABLE_PRINTER
-
-- |
-
-static int |
-ERROR
-
-- |
-
-static int |
-ERROR_JOB_CANCELLED
-
-- |
-
-static int |
-FINISHINGS_BALE
-
-- |
-
-static int |
-FINISHINGS_BIND
-
-- |
-
-static int |
-FINISHINGS_BIND_BOTTOM
-
-- |
-
-static int |
-FINISHINGS_BIND_LEFT
-
-- |
-
-static int |
-FINISHINGS_BIND_RIGHT
-
-- |
-
-static int |
-FINISHINGS_BIND_TOP
-
-- |
-
-static int |
-FINISHINGS_BOOKLET_MAKER
-
-- |
-
-static int |
-FINISHINGS_COVER
-
-- |
-
-static int |
-FINISHINGS_EDGE_STITCH
-
-- |
-
-static int |
-FINISHINGS_EDGE_STITCH_BOTTOM
-
-- |
-
-static int |
-FINISHINGS_EDGE_STITCH_LEFT
-
-- |
-
-static int |
-FINISHINGS_EDGE_STITCH_RIGHT
-
-- |
-
-static int |
-FINISHINGS_EDGE_STITCH_TOP
-
-- |
-
-static int |
-FINISHINGS_FOLD
-
-- |
-
-static int |
-FINISHINGS_JOB_OFFSET
-
-- |
-
-static int |
-FINISHINGS_NONE
-
-- |
-
-static int |
-FINISHINGS_PUNCH
-
-- |
-
-static int |
-FINISHINGS_SADDLE_STITCH
-
-- |
-
-static int |
-FINISHINGS_STAPLE
-
-- |
-
-static int |
-FINISHINGS_STAPLE_BOTTOM_LEFT
-
-- |
-
-static int |
-FINISHINGS_STAPLE_BOTTOM_RIGHT
-
-- |
-
-static int |
-FINISHINGS_STAPLE_DUAL_BOTTOM
-
-- |
-
-static int |
-FINISHINGS_STAPLE_DUAL_LEFT
-
-- |
-
-static int |
-FINISHINGS_STAPLE_DUAL_RIGHT
-
-- |
-
-static int |
-FINISHINGS_STAPLE_DUAL_TOP
-
-- |
-
-static int |
-FINISHINGS_STAPLE_TOP_LEFT
-
-- |
-
-static int |
-FINISHINGS_STAPLE_TOP_RIGHT
-
-- |
-
-static int |
-FINISHINGS_TRIM
-
-- |
-
-static int |
-FORBIDDEN
-
-- |
-
-static int |
-GET_JOB_ATTRIBUTES
-
-- |
-
-static int |
-GET_JOBS
-
-- |
-
-static int |
-GET_NOTIFICATIONS
-
-- |
-
-static int |
-GET_PRINT_SUPPORT_FILES
-
-- |
-
-static int |
-GET_PRINTER_ATTRIBUTES
-
-- |
-
-static int |
-GET_PRINTER_SUPPORTED_VALUES
-
-- |
-
-static int |
-GET_SUBSCRIPTION_ATTRIBUTES
-
-- |
-
-static int |
-GET_SUBSCRIPTIONS
-
-- |
-
-static int |
-GONE
-
-- |
-
-static int |
-HEADER
-
-- |
-
-static int |
-HOLD_JOB
-
-- |
-
-static int |
-HOLD_NEW_JOBS
-
-- |
-
-static int |
-IDLE
-
-- |
-
-static int |
-IGNORED_ALL_NOTIFICATIONS
-
-- |
-
-static int |
-IGNORED_ALL_SUBSCRIPTIONS
-
-- |
-
-static int |
-INTERNAL_ERROR
-
-- |
-
-static int |
-JOB_ABORTED
-
-- |
-
-static int |
-JOB_CANCELLED
-
-- |
-
-static int |
-JOB_COMPLETED
-
-- |
-
-static int |
-JOB_HELD
-
-- |
-
-static int |
-JOB_PENDING
-
-- |
-
-static int |
-JOB_PROCESSING
-
-- |
-
-static int |
-JOB_STOPPED
-
-- |
-
-static int |
-LANDSCAPE
-
-- |
-
-static int |
-MAX_NAME
-
-- |
-
-static int |
-MAX_VALUES
-
-- |
-
-static int |
-MULTIPLE_JOBS_NOT_SUPPORTED
-
-- |
-
-static int |
-NOT_ACCEPTING
-
-- |
-
-static int |
-NOT_AUTHENTICATED
-
-- |
-
-static int |
-NOT_AUTHORIZED
-
-- |
-
-static int |
-NOT_FOUND
-
-- |
-
-static int |
-NOT_POSSIBLE
-
-- |
-
-static int |
-OK
-
-- |
-
-static int |
-OK_BUT_CANCEL_SUBSCRIPTION
-
-- |
-
-static int |
-OK_CONFLICT
-
-- |
-
-static int |
-OK_IGNORED_NOTIFICATIONS
-
-- |
-
-static int |
-OK_IGNORED_SUBSCRIPTIONS
-
-- |
-
-static int |
-OK_SUBST
-
-- |
-
-static int |
-OK_TOO_MANY_EVENTS
-
-- |
-
-static int |
-OPERATION_NOT_SUPPORTED
-
-- |
-
-static int |
-PAUSE_PRINTER
-
-- |
-
-static int |
-PAUSE_PRINTER_AFTER_CURRENT_JOB
-
-- |
-
-static int |
-PORT
-
-- |
-
-static int |
-PORTRAIT
-
-- |
-
-static int |
-PRINT_JOB
-
-- |
-
-static int |
-PRINT_SUPPORT_FILE_NOT_FOUND
-
-- |
-
-static int |
-PRINT_URI
-
-- |
-
-static int |
-PRINTER_BUSY
-
-- |
-
-static int |
-PRINTER_IDLE
-
-- |
-
-static int |
-PRINTER_IS_DEACTIVATED
-
-- |
-
-static int |
-PRINTER_PROCESSING
-
-- |
-
-static int |
-PRINTER_STOPPED
-
-- |
-
-static int |
-PRIVATE
-
-- |
-
-static int |
-PROMOTE_JOB
-
-- |
-
-static int |
-PURGE_JOBS
-
-- |
-
-static int |
-QUALITY_DRAFT
-
-- |
-
-static int |
-QUALITY_HIGH
-
-- |
-
-static int |
-QUALITY_NORMAL
-
-- |
-
-static int |
-REDIRECTION_OTHER_SITE
-
-- |
-
-static int |
-RELEASE_HELD_NEW_JOBS
-
-- |
-
-static int |
-RELEASE_JOB
-
-- |
-
-static int |
-RENEW_SUBSCRIPTION
-
-- |
-
-static int |
-REPROCESS_JOB
-
-- |
-
-static int |
-REQUEST_ENTITY
-
-- |
-
-static int |
-REQUEST_VALUE
-
-- |
-
-static int |
-RES_PER_CM
-
-- |
-
-static int |
-RES_PER_INCH
-
-- |
-
-static int |
-RESTART_JOB
-
-- |
-
-static int |
-RESTART_PRINTER
-
-- |
-
-static int |
-RESUME_JOB
-
-- |
-
-static int |
-RESUME_PRINTER
-
-- |
-
-static int |
-REVERSE_LANDSCAPE
-
-- |
-
-static int |
-REVERSE_PORTRAIT
-
-- |
-
-static int |
-SCHEDULE_JOB_AFTER
-
-- |
-
-static int |
-SEND_DOCUMENT
-
-- |
-
-static int |
-SEND_NOTIFICATIONS
-
-- |
-
-static int |
-SEND_URI
-
-- |
-
-static int |
-SERVICE_UNAVAILABLE
-
-- |
-
-static int |
-SET_JOB_ATTRIBUTES
-
-- |
-
-static int |
-SET_PRINTER_ATTRIBUTES
-
-- |
-
-static int |
-SHUTDOWN_PRINTER
-
-- |
-
-static int |
-STARTUP_PRINTER
-
-- |
-
-static int |
-SUSPEND_CURRENT_JOB
-
-- |
-
-static int |
-TAG_ADMINDEFINE
-
-- |
-
-static int |
-TAG_BEGIN_COLLECTION
-
-- |
-
-static int |
-TAG_BOOLEAN
-
-- |
-
-static int |
-TAG_CHARSET
-
-- |
-
-static int |
-TAG_COPY
-
-- |
-
-static int |
-TAG_DATE
-
-- |
-
-static int |
-TAG_DEFAULT
-
-- |
-
-static int |
-TAG_DELETEATTR
-
-- |
-
-static int |
-TAG_END
-
-- |
-
-static int |
-TAG_END_COLLECTION
-
-- |
-
-static int |
-TAG_ENUM
-
-- |
-
-static int |
-TAG_EVENT_NOTIFICATION
-
-- |
-
-static int |
-TAG_INTEGER
-
-- |
-
-static int |
-TAG_JOB
-
-- |
-
-static int |
-TAG_KEYWORD
-
-- |
-
-static int |
-TAG_LANGUAGE
-
-- |
-
-static int |
-TAG_MASK
-
-- |
-
-static int |
-TAG_MEMBERNAME
-
-- |
-
-static int |
-TAG_MIMETYPE
-
-- |
-
-static int |
-TAG_NAME
-
-- |
-
-static int |
-TAG_NAMELANG
-
-- |
-
-static int |
-TAG_NOTSETTABLE
-
-- |
-
-static int |
-TAG_NOVALUE
-
-- |
-
-static int |
-TAG_OPERATION
-
-- |
-
-static int |
-TAG_PRINTER
-
-- |
-
-static int |
-TAG_RANGE
-
-- |
-
-static int |
-TAG_RESOLUTION
-
-- |
-
-static int |
-TAG_STRING
-
-- |
-
-static int |
-TAG_SUBSCRIPTION
-
-- |
-
-static int |
-TAG_TEXT
-
-- |
-
-static int |
-TAG_TEXTLANG
-
-- |
-
-static int |
-TAG_UNKNOWN
-
-- |
-
-static int |
-TAG_UNSUPPORTED_GROUP
-
-- |
-
-static int |
-TAG_UNSUPPORTED_VALUE
-
-- |
-
-static int |
-TAG_URI
-
-- |
-
-static int |
-TAG_URISCHEME
-
-- |
-
-static int |
-TAG_ZERO
-
-- |
-
-static int |
-TEMPORARY_ERROR
-
-- |
-
-static int |
-TIMEOUT
-
-- |
-
-static int |
-TOO_MANY_SUBSCRIPTIONS
-
-- |
-
-static int |
-URI_SCHEME
-
-- |
-
-static int |
-VALIDATE_JOB
-
-- |
-
-static byte[] |
-VERSION
-
-- |
-
-static int |
-VERSION_NOT_SUPPORTED
-
-- |
-
-Constructor Summary | -|
IPPDefs()
-
-- |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Field Detail | -
-public static final byte[] VERSION-
-public static final int PORT-
-public static final int MAX_NAME-
-public static final int MAX_VALUES-
-public static final int TAG_ZERO-
-public static final int TAG_OPERATION-
-public static final int TAG_JOB-
-public static final int TAG_END-
-public static final int TAG_PRINTER-
-public static final int TAG_UNSUPPORTED_GROUP-
-public static final int TAG_SUBSCRIPTION-
-public static final int TAG_EVENT_NOTIFICATION-
-public static final int TAG_UNSUPPORTED_VALUE-
-public static final int TAG_DEFAULT-
-public static final int TAG_UNKNOWN-
-public static final int TAG_NOVALUE-
-public static final int TAG_NOTSETTABLE-
-public static final int TAG_DELETEATTR-
-public static final int TAG_ADMINDEFINE-
-public static final int TAG_INTEGER-
-public static final int TAG_BOOLEAN-
-public static final int TAG_ENUM-
-public static final int TAG_STRING-
-public static final int TAG_DATE-
-public static final int TAG_RESOLUTION-
-public static final int TAG_RANGE-
-public static final int TAG_BEGIN_COLLECTION-
-public static final int TAG_TEXTLANG-
-public static final int TAG_NAMELANG-
-public static final int TAG_END_COLLECTION-
-public static final int TAG_TEXT-
-public static final int TAG_NAME-
-public static final int TAG_KEYWORD-
-public static final int TAG_URI-
-public static final int TAG_URISCHEME-
-public static final int TAG_CHARSET-
-public static final int TAG_LANGUAGE-
-public static final int TAG_MIMETYPE-
-public static final int TAG_MEMBERNAME-
-public static final int TAG_MASK-
-public static final int TAG_COPY-
-public static final int RES_PER_INCH-
-public static final int RES_PER_CM-
-public static final int FINISHINGS_NONE-
-public static final int FINISHINGS_STAPLE-
-public static final int FINISHINGS_PUNCH-
-public static final int FINISHINGS_COVER-
-public static final int FINISHINGS_BIND-
-public static final int FINISHINGS_SADDLE_STITCH-
-public static final int FINISHINGS_EDGE_STITCH-
-public static final int FINISHINGS_FOLD-
-public static final int FINISHINGS_TRIM-
-public static final int FINISHINGS_BALE-
-public static final int FINISHINGS_BOOKLET_MAKER-
-public static final int FINISHINGS_JOB_OFFSET-
-public static final int FINISHINGS_STAPLE_TOP_LEFT-
-public static final int FINISHINGS_STAPLE_BOTTOM_LEFT-
-public static final int FINISHINGS_STAPLE_TOP_RIGHT-
-public static final int FINISHINGS_STAPLE_BOTTOM_RIGHT-
-public static final int FINISHINGS_EDGE_STITCH_LEFT-
-public static final int FINISHINGS_EDGE_STITCH_TOP-
-public static final int FINISHINGS_EDGE_STITCH_RIGHT-
-public static final int FINISHINGS_EDGE_STITCH_BOTTOM-
-public static final int FINISHINGS_STAPLE_DUAL_LEFT-
-public static final int FINISHINGS_STAPLE_DUAL_TOP-
-public static final int FINISHINGS_STAPLE_DUAL_RIGHT-
-public static final int FINISHINGS_STAPLE_DUAL_BOTTOM-
-public static final int FINISHINGS_BIND_LEFT-
-public static final int FINISHINGS_BIND_TOP-
-public static final int FINISHINGS_BIND_RIGHT-
-public static final int FINISHINGS_BIND_BOTTOM-
-public static final int PORTRAIT-
-public static final int LANDSCAPE-
-public static final int REVERSE_LANDSCAPE-
-public static final int REVERSE_PORTRAIT-
-public static final int QUALITY_DRAFT-
-public static final int QUALITY_NORMAL-
-public static final int QUALITY_HIGH-
-public static final int JOB_PENDING-
-public static final int JOB_HELD-
-public static final int JOB_PROCESSING-
-public static final int JOB_STOPPED-
-public static final int JOB_CANCELLED-
-public static final int JOB_ABORTED-
-public static final int JOB_COMPLETED-
-public static final int PRINTER_IDLE-
-public static final int PRINTER_PROCESSING-
-public static final int PRINTER_STOPPED-
-public static final int ERROR-
-public static final int IDLE-
-public static final int HEADER-
-public static final int ATTRIBUTE-
-public static final int DATA-
-public static final int PRINT_JOB-
-public static final int PRINT_URI-
-public static final int VALIDATE_JOB-
-public static final int CREATE_JOB-
-public static final int SEND_DOCUMENT-
-public static final int SEND_URI-
-public static final int CANCEL_JOB-
-public static final int GET_JOB_ATTRIBUTES-
-public static final int GET_JOBS-
-public static final int GET_PRINTER_ATTRIBUTES-
-public static final int HOLD_JOB-
-public static final int RELEASE_JOB-
-public static final int RESTART_JOB-
-public static final int PAUSE_PRINTER-
-public static final int RESUME_PRINTER-
-public static final int PURGE_JOBS-
-public static final int SET_PRINTER_ATTRIBUTES-
-public static final int SET_JOB_ATTRIBUTES-
-public static final int GET_PRINTER_SUPPORTED_VALUES-
-public static final int CREATE_PRINTER_SUBSCRIPTION-
-public static final int CREATE_JOB_SUBSCRIPTION-
-public static final int GET_SUBSCRIPTION_ATTRIBUTES-
-public static final int GET_SUBSCRIPTIONS-
-public static final int RENEW_SUBSCRIPTION-
-public static final int CANCEL_SUBSCRIPTION-
-public static final int GET_NOTIFICATIONS-
-public static final int SEND_NOTIFICATIONS-
-public static final int GET_PRINT_SUPPORT_FILES-
-public static final int ENABLE_PRINTER-
-public static final int DISABLE_PRINTER-
-public static final int PAUSE_PRINTER_AFTER_CURRENT_JOB-
-public static final int HOLD_NEW_JOBS-
-public static final int RELEASE_HELD_NEW_JOBS-
-public static final int DEACTIVATE_PRINTER-
-public static final int ACTIVATE_PRINTER-
-public static final int RESTART_PRINTER-
-public static final int SHUTDOWN_PRINTER-
-public static final int STARTUP_PRINTER-
-public static final int REPROCESS_JOB-
-public static final int CANCEL_CURRENT_JOB-
-public static final int SUSPEND_CURRENT_JOB-
-public static final int RESUME_JOB-
-public static final int PROMOTE_JOB-
-public static final int SCHEDULE_JOB_AFTER-
-public static final int PRIVATE-
-public static final int CUPS_GET_DEFAULT-
-public static final int CUPS_GET_PRINTERS-
-public static final int CUPS_ADD_PRINTER-
-public static final int CUPS_DELETE_PRINTER-
-public static final int CUPS_GET_CLASSES-
-public static final int CUPS_ADD_CLASS-
-public static final int CUPS_DELETE_CLASS-
-public static final int CUPS_ACCEPT_JOBS-
-public static final int CUPS_REJECT_JOBS-
-public static final int CUPS_SET_DEFAULT-
-public static final int CUPS_GET_DEVICES-
-public static final int CUPS_GET_PPDS-
-public static final int CUPS_MOVE_JOB-
-public static final int CUPS_ADD_DEVICE-
-public static final int CUPS_DELETE_DEVICE-
-public static final int OK-
-public static final int OK_SUBST-
-public static final int OK_CONFLICT-
-public static final int OK_IGNORED_SUBSCRIPTIONS-
-public static final int OK_IGNORED_NOTIFICATIONS-
-public static final int OK_TOO_MANY_EVENTS-
-public static final int OK_BUT_CANCEL_SUBSCRIPTION-
-public static final int REDIRECTION_OTHER_SITE-
-public static final int BAD_REQUEST-
-public static final int FORBIDDEN-
-public static final int NOT_AUTHENTICATED-
-public static final int NOT_AUTHORIZED-
-public static final int NOT_POSSIBLE-
-public static final int TIMEOUT-
-public static final int NOT_FOUND-
-public static final int GONE-
-public static final int REQUEST_ENTITY-
-public static final int REQUEST_VALUE-
-public static final int DOCUMENT_FORMAT-
-public static final int ATTRIBUTES-
-public static final int URI_SCHEME-
-public static final int CHARSET-
-public static final int CONFLICT-
-public static final int COMPRESSION_NOT_SUPPORTED-
-public static final int COMPRESSION_ERROR-
-public static final int DOCUMENT_FORMAT_ERROR-
-public static final int DOCUMENT_ACCESS_ERROR-
-public static final int ATTRIBUTES_NOT_SETTABLE-
-public static final int IGNORED_ALL_SUBSCRIPTIONS-
-public static final int TOO_MANY_SUBSCRIPTIONS-
-public static final int IGNORED_ALL_NOTIFICATIONS-
-public static final int PRINT_SUPPORT_FILE_NOT_FOUND-
-public static final int INTERNAL_ERROR-
-public static final int OPERATION_NOT_SUPPORTED-
-public static final int SERVICE_UNAVAILABLE-
-public static final int VERSION_NOT_SUPPORTED-
-public static final int DEVICE_ERROR-
-public static final int TEMPORARY_ERROR-
-public static final int NOT_ACCEPTING-
-public static final int PRINTER_BUSY-
-public static final int ERROR_JOB_CANCELLED-
-public static final int MULTIPLE_JOBS_NOT_SUPPORTED-
-public static final int PRINTER_IS_DEACTIVATED-
-Constructor Detail | -
-public IPPDefs()-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPError --
-
-Constructor Summary | -|
IPPError(int p_error)
-
-- Constructor that sets error_string after creation. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public IPPError(int p_error)-
error_string
after creation.error_number
- Error number to convert.IPPDefs
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPHttp --
-
-Field Summary | -|
- int |
-activity
-
-- |
-
- java.lang.String |
-auth_type
-
-- |
-
- java.io.BufferedReader |
-br
-
-- |
-
- java.net.Socket |
-conn
-
-- |
-
- boolean |
-connected
-
-- |
-
-static java.lang.String[] |
-days
-
-- |
-
- int |
-error
-
-- |
-
- java.lang.String |
-hostname
-
-- |
-
-static int |
-HTTP_0_9
-
-- |
-
-static int |
-HTTP_1_0
-
-- |
-
-static int |
-HTTP_1_1
-
-- |
-
-static int |
-HTTP_ACCEPTED
-
-- |
-
-static int |
-HTTP_AUTH_BASIC
-
-- |
-
-static int |
-HTTP_AUTH_MD5
-
-- |
-
-static int |
-HTTP_AUTH_MD5_INT
-
-- |
-
-static int |
-HTTP_AUTH_MD5_SESS
-
-- |
-
-static int |
-HTTP_AUTH_MD5_SESS_INT
-
-- |
-
-static int |
-HTTP_AUTH_NONE
-
-- |
-
-static int |
-HTTP_BAD_GATEWAY
-
-- |
-
-static int |
-HTTP_BAD_REQUEST
-
-- |
-
-static int |
-HTTP_CLOSE
-
-- |
-
-static int |
-HTTP_CONFLICT
-
-- |
-
- int |
-http_content_length
-
-- |
-
-static int |
-HTTP_CONTINUE
-
-- |
-
-static int |
-HTTP_CREATED
-
-- |
-
-static int |
-HTTP_DELETE
-
-- |
-
-static int |
-HTTP_ENCODE_CHUNKED
-
-- |
-
-static int |
-HTTP_ENCODE_LENGTH
-
-- |
-
-static int |
-HTTP_ENCRYPT_ALWAYS
-
-- |
-
-static int |
-HTTP_ENCRYPT_IF_REQUESTED
-
-- |
-
-static int |
-HTTP_ENCRYPT_NEVER
-
-- |
-
-static int |
-HTTP_ENCRYPT_REQUIRED
-
-- |
-
-static int |
-HTTP_ERROR
-
-- |
-
-static int |
-HTTP_FIELD_ACCEPT_LANGUAGE
-
-- |
-
-static int |
-HTTP_FIELD_ACCEPT_RANGES
-
-- |
-
-static int |
-HTTP_FIELD_AUTHORIZATION
-
-- |
-
-static int |
-HTTP_FIELD_CONNECTION
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_ENCODING
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_LANGUAGE
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_LENGTH
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_LOCATION
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_MD5
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_RANGE
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_TYPE
-
-- |
-
-static int |
-HTTP_FIELD_CONTENT_VERSION
-
-- |
-
-static int |
-HTTP_FIELD_DATE
-
-- |
-
-static int |
-HTTP_FIELD_HOST
-
-- |
-
-static int |
-HTTP_FIELD_IF_MODIFIED_SINCE
-
-- |
-
-static int |
-HTTP_FIELD_IF_UNMODIFIED_SINCE
-
-- |
-
-static int |
-HTTP_FIELD_KEEP_ALIVE
-
-- |
-
-static int |
-HTTP_FIELD_LAST_MODIFIED
-
-- |
-
-static int |
-HTTP_FIELD_LINK
-
-- |
-
-static int |
-HTTP_FIELD_LOCATION
-
-- |
-
-static int |
-HTTP_FIELD_MAX
-
-- |
-
-static int |
-HTTP_FIELD_RANGE
-
-- |
-
-static int |
-HTTP_FIELD_REFERER
-
-- |
-
-static int |
-HTTP_FIELD_RETRY_AFTER
-
-- |
-
-static int |
-HTTP_FIELD_TRANSFER_ENCODING
-
-- |
-
-static int |
-HTTP_FIELD_UNKNOWN
-
-- |
-
-static int |
-HTTP_FIELD_UPGRADE
-
-- |
-
-static int |
-HTTP_FIELD_USER_AGENT
-
-- |
-
-static int |
-HTTP_FIELD_WWW_AUTHENTICATE
-
-- |
-
-static java.lang.String[] |
-http_fields
-
-- |
-
-static int |
-HTTP_FORBIDDEN
-
-- |
-
-static int |
-HTTP_GATEWAY_TIMEOUT
-
-- |
-
-static int |
-HTTP_GET
-
-- |
-
-static int |
-HTTP_GET_SEND
-
-- |
-
-static int |
-HTTP_GONE
-
-- |
-
-static int |
-HTTP_HEAD
-
-- |
-
-static int |
-HTTP_KEEPALIVE_OFF
-
-- |
-
-static int |
-HTTP_KEEPALIVE_ON
-
-- |
-
-static int |
-HTTP_LENGTH_REQUIRED
-
-- |
-
-static int |
-HTTP_METHOD_NOT_ALLOWED
-
-- |
-
-static int |
-HTTP_MOVED_PERMANENTLY
-
-- |
-
-static int |
-HTTP_MOVED_TEMPORARILY
-
-- |
-
-static int |
-HTTP_MULTIPLE_CHOICES
-
-- |
-
-static int |
-HTTP_NO_CONTENT
-
-- |
-
-static int |
-HTTP_NOT_ACCEPTABLE
-
-- |
-
-static int |
-HTTP_NOT_AUTHORITATIVE
-
-- |
-
-static int |
-HTTP_NOT_FOUND
-
-- |
-
-static int |
-HTTP_NOT_IMPLEMENTED
-
-- |
-
-static int |
-HTTP_NOT_MODIFIED
-
-- |
-
-static int |
-HTTP_NOT_SUPPORTED
-
-- |
-
-static int |
-HTTP_OK
-
-- |
-
-static int |
-HTTP_OPTIONS
-
-- |
-
-static int |
-HTTP_PARTIAL_CONTENT
-
-- |
-
-static int |
-HTTP_PAYMENT_REQUIRED
-
-- |
-
-static int |
-HTTP_POST
-
-- |
-
-static int |
-HTTP_POST_RECV
-
-- |
-
-static int |
-HTTP_POST_SEND
-
-- |
-
-static int |
-HTTP_PRECONDITION
-
-- |
-
-static int |
-HTTP_PROXY_AUTHENTICATION
-
-- |
-
-static int |
-HTTP_PUT
-
-- |
-
-static int |
-HTTP_PUT_RECV
-
-- |
-
- java.lang.String |
-http_request
-
-- |
-
-static int |
-HTTP_REQUEST_TIMEOUT
-
-- |
-
-static int |
-HTTP_REQUEST_TOO_LARGE
-
-- |
-
-static int |
-HTTP_RESET_CONTENT
-
-- |
-
-static int |
-HTTP_SEE_OTHER
-
-- |
-
-static int |
-HTTP_SERVER_ERROR
-
-- |
-
-static int |
-HTTP_SERVICE_UNAVAILABLE
-
-- |
-
-static int |
-HTTP_STATUS
-
-- |
-
-static int |
-HTTP_SWITCHING_PROTOCOLS
-
-- |
-
-static int |
-HTTP_TRACE
-
-- |
-
-static int |
-HTTP_UNAUTHORIZED
-
-- |
-
-static int |
-HTTP_UNSUPPORTED_MEDIATYPE
-
-- |
-
-static int |
-HTTP_UPGRADE_REQUIRED
-
-- |
-
-static int |
-HTTP_URI_TOO_LONG
-
-- |
-
-static int |
-HTTP_USE_PROXY
-
-- |
-
-static int |
-HTTP_WAITING
-
-- Class constants - most not in use yet. |
-
- java.io.BufferedInputStream |
-is
-
-- |
-
- java.lang.String |
-method
-
-- |
-
-static java.lang.String[] |
-months
-
-- |
-
- java.lang.String |
-nonce
-
-- |
-
- java.lang.String |
-opaque
-
-- |
-
- java.io.BufferedOutputStream |
-os
-
-- |
-
- java.lang.String |
-passwd
-
-- |
-
- java.lang.String |
-path
-
-- |
-
- int |
-port
-
-- |
-
- char[] |
-read_buffer
-
-- |
-
- java.lang.String |
-read_header_charset
-
-- |
-
- java.lang.String |
-read_header_content_language
-
-- |
-
- int |
-read_header_content_length
-
-- |
-
- java.lang.String |
-read_header_content_type
-
-- |
-
- java.lang.String |
-read_header_date
-
-- |
-
- java.lang.String |
-read_header_server
-
-- |
-
- java.lang.String |
-realm
-
-- |
-
- java.lang.String |
-resource
-
-- |
-
- int |
-status
-
-- |
-
- java.lang.String |
-status_text
-
-- |
-
- java.lang.String |
-user
-
-- |
-
- java.lang.String |
-version
-
-- |
-
- int |
-write_content_length
-
-- |
-
-Constructor Summary | -|
IPPHttp(java.lang.String request_url)
-
-- Constructor using URL . |
-|
IPPHttp(java.lang.String request_url,
- java.lang.String p_auth_type,
- java.lang.String p_user,
- java.lang.String p_passwd)
-
-- Constructor using URL, user and pass . |
-
-Method Summary | -|
- int |
-checkForResponse()
-
-- |
-
- void |
-parseAuthenticate(java.lang.String p_auth)
-
-- |
-
- IPP |
-processResponse()
-
-- Process the HTTP response from the server. |
-
- int |
-read_header()
-
-- Read the HTTP header from the input stream. |
-
- java.lang.String |
-read_line()
-
-- Read a line from the input stream. |
-
- char[] |
-read(int count)
-
-- Read up to count bytes from the input stream. |
-
- boolean |
-reConnect()
-
-- Re-establish a dropped connection. |
-
- void |
-setPassword(java.lang.String p_passwd)
-
-- Set the password. |
-
- void |
-setUser(java.lang.String p_user)
-
-- Set the user name. |
-
- void |
-write(byte[] bytes)
-
-- Write bytes to the output stream. |
-
- void |
-write(byte[] bytes,
- int length)
-
-- Write bytes to the output stream. |
-
- int |
-writeHeader(java.lang.String request,
- int content_length)
-
-- Write the request header bytes to the server. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Field Detail | -
-public static final int HTTP_WAITING-
-public static final int HTTP_OPTIONS-
-public static final int HTTP_GET-
-public static final int HTTP_GET_SEND-
-public static final int HTTP_HEAD-
-public static final int HTTP_POST-
-public static final int HTTP_POST_RECV-
-public static final int HTTP_POST_SEND-
-public static final int HTTP_PUT-
-public static final int HTTP_PUT_RECV-
-public static final int HTTP_DELETE-
-public static final int HTTP_TRACE-
-public static final int HTTP_CLOSE-
-public static final int HTTP_STATUS-
-public static final int HTTP_0_9-
-public static final int HTTP_1_0-
-public static final int HTTP_1_1-
-public static final int HTTP_KEEPALIVE_OFF-
-public static final int HTTP_KEEPALIVE_ON-
-public static final int HTTP_ENCODE_LENGTH-
-public static final int HTTP_ENCODE_CHUNKED-
-public static final int HTTP_ENCRYPT_IF_REQUESTED-
-public static final int HTTP_ENCRYPT_NEVER-
-public static final int HTTP_ENCRYPT_REQUIRED-
-public static final int HTTP_ENCRYPT_ALWAYS-
-public static final int HTTP_AUTH_NONE-
-public static final int HTTP_AUTH_BASIC-
-public static final int HTTP_AUTH_MD5-
-public static final int HTTP_AUTH_MD5_SESS-
-public static final int HTTP_AUTH_MD5_INT-
-public static final int HTTP_AUTH_MD5_SESS_INT-
-public static final int HTTP_ERROR-
-public static final int HTTP_CONTINUE-
-public static final int HTTP_SWITCHING_PROTOCOLS-
-public static final int HTTP_OK-
-public static final int HTTP_CREATED-
-public static final int HTTP_ACCEPTED-
-public static final int HTTP_NOT_AUTHORITATIVE-
-public static final int HTTP_NO_CONTENT-
-public static final int HTTP_RESET_CONTENT-
-public static final int HTTP_PARTIAL_CONTENT-
-public static final int HTTP_MULTIPLE_CHOICES-
-public static final int HTTP_MOVED_PERMANENTLY-
-public static final int HTTP_MOVED_TEMPORARILY-
-public static final int HTTP_SEE_OTHER-
-public static final int HTTP_NOT_MODIFIED-
-public static final int HTTP_USE_PROXY-
-public static final int HTTP_BAD_REQUEST-
-public static final int HTTP_UNAUTHORIZED-
-public static final int HTTP_PAYMENT_REQUIRED-
-public static final int HTTP_FORBIDDEN-
-public static final int HTTP_NOT_FOUND-
-public static final int HTTP_METHOD_NOT_ALLOWED-
-public static final int HTTP_NOT_ACCEPTABLE-
-public static final int HTTP_PROXY_AUTHENTICATION-
-public static final int HTTP_REQUEST_TIMEOUT-
-public static final int HTTP_CONFLICT-
-public static final int HTTP_GONE-
-public static final int HTTP_LENGTH_REQUIRED-
-public static final int HTTP_PRECONDITION-
-public static final int HTTP_REQUEST_TOO_LARGE-
-public static final int HTTP_URI_TOO_LONG-
-public static final int HTTP_UNSUPPORTED_MEDIATYPE-
-public static final int HTTP_UPGRADE_REQUIRED-
-public static final int HTTP_SERVER_ERROR-
-public static final int HTTP_NOT_IMPLEMENTED-
-public static final int HTTP_BAD_GATEWAY-
-public static final int HTTP_SERVICE_UNAVAILABLE-
-public static final int HTTP_GATEWAY_TIMEOUT-
-public static final int HTTP_NOT_SUPPORTED-
-public static final int HTTP_FIELD_UNKNOWN-
-public static final int HTTP_FIELD_ACCEPT_LANGUAGE-
-public static final int HTTP_FIELD_ACCEPT_RANGES-
-public static final int HTTP_FIELD_AUTHORIZATION-
-public static final int HTTP_FIELD_CONNECTION-
-public static final int HTTP_FIELD_CONTENT_ENCODING-
-public static final int HTTP_FIELD_CONTENT_LANGUAGE-
-public static final int HTTP_FIELD_CONTENT_LENGTH-
-public static final int HTTP_FIELD_CONTENT_LOCATION-
-public static final int HTTP_FIELD_CONTENT_MD5-
-public static final int HTTP_FIELD_CONTENT_RANGE-
-public static final int HTTP_FIELD_CONTENT_TYPE-
-public static final int HTTP_FIELD_CONTENT_VERSION-
-public static final int HTTP_FIELD_DATE-
-public static final int HTTP_FIELD_HOST-
-public static final int HTTP_FIELD_IF_MODIFIED_SINCE-
-public static final int HTTP_FIELD_IF_UNMODIFIED_SINCE-
-public static final int HTTP_FIELD_KEEP_ALIVE-
-public static final int HTTP_FIELD_LAST_MODIFIED-
-public static final int HTTP_FIELD_LINK-
-public static final int HTTP_FIELD_LOCATION-
-public static final int HTTP_FIELD_RANGE-
-public static final int HTTP_FIELD_REFERER-
-public static final int HTTP_FIELD_RETRY_AFTER-
-public static final int HTTP_FIELD_TRANSFER_ENCODING-
-public static final int HTTP_FIELD_UPGRADE-
-public static final int HTTP_FIELD_USER_AGENT-
-public static final int HTTP_FIELD_WWW_AUTHENTICATE-
-public static final int HTTP_FIELD_MAX-
-public static final java.lang.String[] http_fields-
-public static final java.lang.String[] days-
-public static final java.lang.String[] months-
-public java.net.Socket conn-
-public boolean connected-
-public java.io.BufferedInputStream is-
-public java.io.BufferedReader br-
-public java.io.BufferedOutputStream os-
-public int write_content_length-
-public java.lang.String read_header_date-
-public java.lang.String read_header_server-
-public java.lang.String read_header_charset-
-public java.lang.String read_header_content_language-
-public java.lang.String read_header_content_type-
-public int read_header_content_length-
-public char[] read_buffer-
-public int status-
-public java.lang.String status_text-
-public java.lang.String version-
-public int error-
-public int activity-
-public java.lang.String hostname-
-public int port-
-public java.lang.String path-
-public java.lang.String user-
-public java.lang.String passwd-
-public java.lang.String auth_type-
-public java.lang.String realm-
-public java.lang.String opaque-
-public java.lang.String nonce-
-public java.lang.String resource-
-public java.lang.String method-
-public java.lang.String http_request-
-public int http_content_length-
-Constructor Detail | -
-public IPPHttp(java.lang.String request_url) - throws java.io.IOException, - java.net.UnknownHostException-
URL
.request_url
- URL
of server to connect to.-public IPPHttp(java.lang.String request_url, - java.lang.String p_auth_type, - java.lang.String p_user, - java.lang.String p_passwd) - throws java.io.IOException, - java.net.UnknownHostException-
URL, user and pass
.request_url
- URL
of server to connect to.p_auth_type
- String
basic or digest.p_user
- String
User name.p_passwd
- String
password.-Method Detail | -
-public boolean reConnect() - throws java.io.IOException-
boolean
True if connected.-public void setUser(java.lang.String p_user)-
p_user
- String
- user name.-public void setPassword(java.lang.String p_passwd)-
p_passwd
- String
- password.-public int writeHeader(java.lang.String request, - int content_length) - throws java.io.IOException-
request
- String
- the request.content_length
- int
- size of the total request.-public int checkForResponse()-
-public void write(byte[] bytes) - throws java.io.IOException-
bytes
- Array of bytes to write to the stream.-public void write(byte[] bytes, - int length) - throws java.io.IOException-
bytes
- Array of bytes to write to the stream.length
- Number of bytes to write to the stream.-public int read_header() - throws java.io.IOException-
int
Content length of response.-public java.lang.String read_line() - throws java.io.IOException-
String
Line read.-public char[] read(int count) - throws java.io.IOException-
count
bytes from the input stream.count
- Number of bytes to read.char[]
Character array of data read.-public IPP processResponse()-
IPP
IPP object containing response data.IPP
,
-IPPRequest
,
-IPPAttribute
,
-IPPValue
,
-IPPDefs
-public void parseAuthenticate(java.lang.String p_auth)-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPRequest --
-An IPPRequest
object is used to hold the
- status and id's of a request.
-
-
-Constructor Summary | -|
IPPRequest()
-
-- Constructor |
-|
IPPRequest(int p_request_id,
- short p_operation_id)
-
-- Constructor using request id and operation id. |
-
-Method Summary | -|
- void |
-setOpStatus(short p_status_code)
-
-- Set the operation status of a request. |
-
- void |
-setStatus(short p_status_code)
-
-- Set the current status of a request. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public IPPRequest()-
-public IPPRequest(int p_request_id, - short p_operation_id)-
p_request_id
- ID of request.p_operation_id
- Operation ID for request.IPPDefs
-Method Detail | -
-public void setStatus(short p_status_code)-
p_status_code
- Status code.IPPDefs
-public void setOpStatus(short p_status_code)-
p_status_code
- Operation status code.IPPDefs
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPStatus --
-Class to convert a status code to text. -
-
-Constructor Summary | -|
IPPStatus(int p_status)
-
-- Constructor, access the status_text member
- after creation. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public IPPStatus(int p_status)-
status_text
member
- after creation.p_status
- Status code to convert.IPPDefs
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--java.net.URLConnection - | - +--com.easysw.cups.IPPURLConnection --
-
Fields inherited from class java.net.URLConnection | -
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
-
-Constructor Summary | -|
IPPURLConnection(java.net.URL url)
-
-- Constructor. |
-
-Method Summary | -|
- void |
-connect()
-
-- Not used. |
-
- void |
-disconnect()
-
-- Not used. |
-
- boolean |
-usingProxy()
-
-- Determine if using proxy. |
-
Methods inherited from class java.net.URLConnection | -
getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
-
-Constructor Detail | -
-public IPPURLConnection(java.net.URL url)-
-Method Detail | -
-public boolean usingProxy()-
boolean
Always false
for now.-public void connect()-
connect
in class java.net.URLConnection
-public void disconnect()-
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-java.lang.Object - | - +--com.easysw.cups.IPPValue --
-
-Constructor Summary | -|
IPPValue(boolean p_boolean)
-
-- Boolean constructor. |
-|
IPPValue(byte p_byte)
-
-- Byte constructor. |
-|
IPPValue(byte p_units,
- int p_xres,
- int p_yres)
-
-- Resolution constructor. |
-|
IPPValue(char[] p_date)
-
-- Date constructor. |
-|
IPPValue(int p_int)
-
-- Integer constructor. |
-|
IPPValue(int p_int,
- boolean anything)
-
-- Enum constructor. |
-|
IPPValue(int p_length,
- char[] p_data)
-
-- Raw data constructor. |
-|
IPPValue(int p_lower,
- int p_upper)
-
-- Range constructor. |
-|
IPPValue(short p_short)
-
-- Short constructor. |
-|
IPPValue(java.lang.String p_charset,
- java.lang.String p_text)
-
-- String constructor. |
-
-Method Summary | -|
- long |
-IPPDateToTime()
-
-- Convert an IPP Date value to Unix Time. |
-
Methods inherited from class java.lang.Object | -
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
-Constructor Detail | -
-public IPPValue(byte p_byte)-
p_byte
- Byte value.-public IPPValue(short p_short)-
p_short
- Short value.-public IPPValue(int p_int)-
p_int
- Integer value.-public IPPValue(int p_int, - boolean anything)-
p_int
- Integer value - force to IPP enum.-public IPPValue(boolean p_boolean)-
p_boolean
- Boolean value.-public IPPValue(char[] p_date)-
unix_time
member.p_date[]
- Character array with date value.-public IPPValue(java.lang.String p_charset, - java.lang.String p_text)-
string
and
- charset
values.p_charset
- Charset for string.p_text
- Text for string.-public IPPValue(int p_lower, - int p_upper)-
p_lower
- Integer lower value.p_upper
- Integer upper value.-public IPPValue(byte p_units, - int p_xres, - int p_yres)-
p_units
- Unit of measure.p_xres
- X resolution.p_yres
- Y resolution.-public IPPValue(int p_length, - char[] p_data)-
p_length
- Size of array.p_data[]
- Data.-Method Detail | -
-public long IPPDateToTime()-
long
Unix time in seconds.IPPCalender
-
-
|
-- - | -|||||||
- PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES | -|||||||
- SUMMARY: INNER | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
- ---Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
-
-- Interfaces (italic)
- Classes
- Exceptions
- Errors
- ---Each class, interface, inner class and inner interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description -
-
- Inner Class Summary
- Field Summary
- Constructor Summary
- Method Summary -
-
- Field Detail
- Constructor Detail
- Method Detail
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with-java.lang.Object
. The interfaces do not inherit fromjava.lang.Object
.-
-- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.-
-
-
-
-This help file applies to API documentation generated using the standard doclet.
-
-
-
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
URL
.
-current
.
-encrypt
member.
-IPP
object is used to hold the various
- attributes and status of an ipp request..IPPDefs
is a collection of constants for use
- in the IPP
and CUPS
classes.error_string
after creation.
-URL
.
-URL, user and pass
.
-IPPRequest
object is used to hold the
- status and id's of a request.status_text
member
- after creation.
-count
bytes from the input stream.
-dest
member.
-encrypt
member.
-instance
member.
-passwd
member.
-path
member.
-port
member.
-protocol
member.
-IPP
request ID.
-IPP
operation ID.
-server
member.
-user
member.
-IPP
request.
-
-
-
|
-- - | -|||||||
- PREV - NEXT | -- FRAMES - NO FRAMES | -
-This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
-
-Link to Non-frame version.