public class IppResponse extends AbstractIpp
----------------------------------------------- | version-number | 2 bytes - required ----------------------------------------------- | operation-id (request) | | or | 2 bytes - required | status-code (response) | ----------------------------------------------- | 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 |
|---|
IppResponse(IppRequest request)
The IppResponse is the response to a IppRequest.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getOpCodeAsString()
Returns the 2nd part (byte 2-3) with the status-code as string.
|
StatusCode |
getStatusCode()
Returns the 2nd part (byte 2-3) with the status-code.
|
getAttribute, getAttributeGroups, getAttributeGroups, getAttributes, getData, getOpCode, getRequestId, getVersion, hasData, toByteArray, toLongString, toStringpublic IppResponse(IppRequest request)
request - the request for this responsepublic StatusCode getStatusCode()
StatusCode.SUCCESSFUL_OKprotected String getOpCodeAsString()
getOpCodeAsString in class AbstractIppCopyright © 2018. All rights reserved.