R
- The type of result.public interface ExtendedRequest<R extends ExtendedResult> extends Request
Modifier and Type | Method and Description |
---|---|
ExtendedRequest<R> |
addControl(Control control)
Adds the provided control to this request.
|
java.lang.String |
getOID()
Returns the numeric OID associated with this extended request.
|
ExtendedResultDecoder<R> |
getResultDecoder()
Returns a decoder which can be used to decoded responses to this extended
request.
|
ByteString |
getValue()
Returns the value, if any, associated with this extended request.
|
boolean |
hasValue()
Returns
true if this extended request has a value. |
getControl, getControls, isInternal, removeControl
getAttachment, getAttachmentNames, removeAttachment, setAttachment
ExtendedRequest<R> addControl(Control control) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException
addControl
in interface Request
control
- The control to be added to this request.java.lang.UnsupportedOperationException
- If this request does not permit controls to be added.java.lang.NullPointerException
- If control
was null
.java.lang.String getOID()
ExtendedResultDecoder<R> getResultDecoder()
ByteString getValue()
null
if
there is no value.boolean hasValue()
true
if this extended request has a value. In some
circumstances it may be useful to determine if a extended request has a
value, without actually calculating the value and incurring any performance
costs.true
if this extended request has a value, or false
if there is no value.