]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/java/src/com/easysw/cups/IPPRequest.java
a0de169dc57e09e26ce25b8c17c4fb978abf5f14
1 package com
.easysw
.cups
;
4 * @version 1.00 06-NOV-2002
5 * @author Easy Software Products
7 * Internet Printing Protocol definitions for the Common UNIX Printing
10 * Copyright 1997-2002 by Easy Software Products.
12 * These coded instructions, statements, and computer programs are the
13 * property of Easy Software Products and are protected by Federal
14 * copyright law. Distribution and use rights are outlined in the file
15 * "LICENSE.txt" which should have been included with this file. If this
16 * file is missing or damaged please contact Easy Software Products
19 * Attn: CUPS Licensing Information
20 * Easy Software Products
21 * 44141 Airport View Drive, Suite 204
22 * Hollywood, Maryland 20636-3111 USA
24 * Voice: (301) 373-9603
25 * EMail: cups-info@cups.org
26 * WWW: http://www.cups.org
30 * An <code>IPPRequest</code> object is used to hold the
31 * status and id's of a request.
37 public class IPPRequest
39 char[] version
; // Proto version number
40 int request_id
; // Unique ID
51 version
= new char[2];
55 * Constructor using request id and operation id.
57 * @param <code>p_request_id</code> ID of request.
58 * @param <code>p_operation_id</code> Operation ID for request.
60 * @see <code>IPPDefs</code>
62 public IPPRequest( int p_request_id
, short p_operation_id
)
64 version
= new char[2];
67 request_id
= p_request_id
;
68 operation_id
= p_operation_id
;
72 * Set the current status of a request.
74 * @param <code>p_status_code</code> Status code.
75 * @see <code>IPPDefs</code>
77 public void setStatus( short p_status_code
)
79 status_code
= p_status_code
;
83 * Set the operation status of a request.
85 * @param <code>p_status_code</code> Operation status code.
86 * @see <code>IPPDefs</code>
88 public void setOpStatus( short p_status_code
)
90 op_status
= p_status_code
;
93 } // End of IPPRequest class