com.easysw.cups
Class  IPP
java.lang.Object
  |
  +--com.easysw.cups.IPP
- public class IPP- extends java.lang.Object
An IPP object is used to hold the various
 attributes and status of an ipp request..
- Since: 
- JDK1.3
 
| Constructor Summary | 
| IPP()
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
request
public IPPRequest request
status
public IPPStatus status
attrs
public java.util.List attrs
IPP
public IPP()
addAttribute
public boolean addAttribute(IPPAttribute a)
- Add an attribute to the attibutes list
 for later parsing.- 
- Parameters:
- a-- IPPAttributeto add.
- Returns:
- truealways returns- truefor now.
- See Also: 
- IPPAttribute,- IPPValue
 
getCurrentAttribute
public IPPAttribute getCurrentAttribute()
- Get the current attribute pointed at by
 current.
- 
- Returns:
- IPPAttributeReturn the current attribute.
 
ippFindAttribute
public IPPAttribute ippFindAttribute(java.lang.String p_name,
                                     int p_type)
- Find the named attribute of the correct type.  Both must match.
  This methos searches from the beginning of the attribute list,
  rather than from the current position.- 
- Parameters:
- p_name-- Stringcontaining the name.
- p_type-- intattribute type.
- Returns:
- IPPAttributeMatching attribute if found.
 
ippFindNextAttribute
public IPPAttribute ippFindNextAttribute(java.lang.String p_name,
                                         int p_type)
- Find the named attribute of the correct type.  Both must match.
  This methos searches from the current position in the attribute list.- 
- Parameters:
- p_name-- Stringcontaining the name.
- p_type-- intattribute type.
- Returns:
- IPPAttributeMatching attribute if found.
 
sizeInBytes
public int sizeInBytes()
- Get the size in bytes of an IPPrequest.
- 
- Returns:
- intNumber of bytes for the request.
 
setRequestID
public void setRequestID(short p_id)
- Set the IPPrequest ID.
- 
- Parameters:
- p_id-- shortrequest id.
 
setRequestOperationID
public void setRequestOperationID(short p_operation_id)
- Set the IPPoperation ID.
- 
- Parameters:
- p_operation_id-- shortoperation id.
 
dump_response
public void dump_response()