public class ExtendedRequestImpl extends InternalAbstractRequest implements InternalExtendedRequest
Modifier and Type | Field and Description |
---|---|
protected byte[] |
payload
Extended request's payload or requestValue
|
protected InternalResultResponse |
response |
RESP_TYPE, TYPE
Constructor and Description |
---|
ExtendedRequestImpl(int id)
Creates a Lockable ExtendedRequest implementing object used to perform
extended protocol operation on the server.
|
Modifier and Type | Method and Description |
---|---|
ExtendedResponse |
createExtendedResponse(String id,
byte[] berValue,
int offset,
int length) |
boolean |
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.
|
byte[] |
getEncodedValue() |
String |
getID() |
String |
getOid()
Gets the Object Idendifier corresponding to the extended request type.
|
byte[] |
getPayload()
Gets the extended request's requestValue portion of the PDU.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
InternalResultResponse |
getResultResponse()
The result containing response for this request.
|
void |
setOid(String oid)
Sets the Object Idendifier corresponding to the extended request type.
|
void |
setPayload(byte[] payload)
Sets the extended request's requestValue portion of the PDU.
|
String |
toString()
Get a String representation of an Extended Request
|
hashCode, hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
protected byte[] payload
protected InternalResultResponse response
public ExtendedRequestImpl(int id)
id
- the sequential message identifierpublic String getOid()
getOid
in interface InternalExtendedRequest
public void setOid(String oid)
setOid
in interface InternalExtendedRequest
oid
- the dotted-decimal representation as a String of the OIDpublic byte[] getPayload()
getPayload
in interface InternalExtendedRequest
public void setPayload(byte[] payload)
setPayload
in interface InternalExtendedRequest
payload
- byte array of data encapsulating ext. req. parameterspublic MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public InternalResultResponse getResultResponse()
getResultResponse
in interface InternalResultResponseRequest
public boolean equals(Object obj)
equals
in class InternalAbstractMessage
obj
- the object to be checked for equalitypublic String toString()
public String getID()
getID
in interface ExtendedRequest
public byte[] getEncodedValue()
getEncodedValue
in interface ExtendedRequest
public ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length) throws NamingException
createExtendedResponse
in interface ExtendedRequest
NamingException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.