public class IppRequest extends AbstractIpp
----------------------------------------------- | version-number | 2 bytes - required ----------------------------------------------- | operation-id (request) | 2 bytes - required ----------------------------------------------- | request-id | 4 bytes - required ----------------------------------------------- | attribute-group | n bytes - 0 or more ----------------------------------------------- | end-of-attributes-tag | 1 byte - required ----------------------------------------------- | data | q bytes - optional -----------------------------------------------
AbstractIpp.VersionDEFAULT_VERSION| Constructor and Description |
|---|
IppRequest()
This constructor is needed for the
Externalizable
interface. |
IppRequest(byte[] bytes)
Instantiates a new IPP request from the given bytes.
|
IppRequest(java.nio.ByteBuffer bytes)
Instantiates a new IPP request from the given bytes.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getOpCodeAsString()
Returns the 2nd part (byte 2-3) with the operation-id as string.
|
IppOperations |
getOperation()
Returns the 2nd part (byte 2-3) with the operation-id.
|
addAttributeGroup, equals, getAttribute, getAttributeGroup, getAttributeGroups, getAttributes, getData, getJobId, getJobState, getJobStateMessage, getJobStateReasons, getJobURI, getLength, getOpCode, getOperationAttributes, getPrinterURI, getRequestId, getVersion, hasAttribute, hasData, hashCode, readExternal, recordTo, recordTo, setAttribute, setAttribute, setAttributesCharset, setAttributesNaturalLanguage, setData, setJobAttribute, setJobId, setJobState, setJobStateMessage, setJobStateReasons, setJobURI, setOpCode, setOperationAttribute, setPrinterURI, setRequestId, setRequestingUserName, toByteArray, toLongString, toShortString, toString, validate, writeExternalpublic IppRequest()
Externalizable
interface.public IppRequest(byte[] bytes)
bytes - the bytes of the IPP requestpublic IppRequest(java.nio.ByteBuffer bytes)
bytes - the bytes of the IPP requestpublic IppOperations getOperation()
IppOperations.CREATE_JOBprotected java.lang.String getOpCodeAsString()
getOpCodeAsString in class AbstractIppCopyright © 2018–2020. All rights reserved.