]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/java/src/com/easysw/cups/IPPRequest.java
1 package com
.easysw
.cups
;
4 * @version 1.00 06-NOV-2002
7 * Internet Printing Protocol definitions for the Common UNIX Printing
10 * Copyright 2007 by Apple Inc.
11 * Copyright 1997-2002 by Easy Software Products.
13 * These coded instructions, statements, and computer programs are the
14 * property of Apple Inc. and are protected by Federal copyright
15 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
16 * which should have been included with this file. If this file is
17 * file is missing or damaged, see the license at "http://www.cups.org/".
21 * An <code>IPPRequest</code> object is used to hold the
22 * status and id's of a request.
28 public class IPPRequest
30 char[] version
; // Proto version number
31 int request_id
; // Unique ID
42 version
= new char[2];
46 * Constructor using request id and operation id.
48 * @param <code>p_request_id</code> ID of request.
49 * @param <code>p_operation_id</code> Operation ID for request.
51 * @see <code>IPPDefs</code>
53 public IPPRequest( int p_request_id
, short p_operation_id
)
55 version
= new char[2];
58 request_id
= p_request_id
;
59 operation_id
= p_operation_id
;
63 * Set the current status of a request.
65 * @param <code>p_status_code</code> Status code.
66 * @see <code>IPPDefs</code>
68 public void setStatus( short p_status_code
)
70 status_code
= p_status_code
;
74 * Set the operation status of a request.
76 * @param <code>p_status_code</code> Operation status code.
77 * @see <code>IPPDefs</code>
79 public void setOpStatus( short p_status_code
)
81 op_status
= p_status_code
;
84 } // End of IPPRequest class