public class OpaqueExtendedRequest extends AbstractRequest implements ExtendedRequest
Constructor and Description |
---|
OpaqueExtendedRequest()
Creates an ExtendedRequest implementing object used to perform
extended protocol operation on the server.
|
OpaqueExtendedRequest(byte[] requestValue)
Creates an ExtendedRequest implementing object used to perform
extended protocol operation on the server.
|
OpaqueExtendedRequest(String requestName)
Creates an ExtendedRequest implementing object used to perform
extended protocol operation on the server.
|
OpaqueExtendedRequest(String requestName,
byte[] requestValue)
Creates an ExtendedRequest implementing object used to perform
extended protocol operation on the server.
|
Modifier and Type | Method and Description |
---|---|
ExtendedRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
ExtendedRequest |
addControl(Control control)
Adds a control to this Message.
|
boolean |
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.
|
ExtendedResponse |
getExtendedResponse()
The result containing response for this request.
|
String |
getRequestName()
Gets the Object Identifier corresponding to the extended request type.
|
byte[] |
getRequestValue() |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
ExtendedResponse |
getResultResponse()
If called for the first time, this method creates a result containing
response object for this request.
|
int |
hashCode() |
ExtendedRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
ExtendedRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
ExtendedRequest |
setRequestName(String newOid)
Sets the Object Identifier corresponding to the extended request type.
|
void |
setRequestValue(byte[] requestValue) |
String |
toString()
Get a String representation of an Extended Request
|
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public OpaqueExtendedRequest()
public OpaqueExtendedRequest(String requestName)
requestName
- the extended request namepublic OpaqueExtendedRequest(byte[] requestValue)
requestValue
- the embedded valuepublic OpaqueExtendedRequest(String requestName, byte[] requestValue)
requestName
- The extended request OIDrequestValue
- the embedded valuepublic String getRequestName()
getRequestName
in interface ExtendedRequest
public ExtendedRequest setRequestName(String newOid)
setRequestName
in interface ExtendedRequest
newOid
- the dotted-decimal representation as a String of the OIDpublic ExtendedRequest setMessageId(int messageId)
setMessageId
in interface ExtendedRequest
setMessageId
in interface Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic ExtendedRequest addControl(Control control)
addControl
in interface ExtendedRequest
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.public ExtendedRequest addAllControls(Control[] controls)
addAllControls
in interface ExtendedRequest
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.public ExtendedRequest removeControl(Control control)
removeControl
in interface ExtendedRequest
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public ExtendedResponse getExtendedResponse()
public ExtendedResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
public byte[] getRequestValue()
public void setRequestValue(byte[] requestValue)
requestValue
- the requestValue to setpublic int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the object to be checked for equalityCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.