Package org.opends.server.types
Class IntermediateResponse
- java.lang.Object
-
- org.opends.server.types.IntermediateResponse
-
@PublicAPI(stability=VOLATILE, mayInstantiate=true, mayInvoke=true) public final class IntermediateResponse extends Object
This class defines a data structure for holding information that may be sent to the client in the form of an intermediate response. It may contain an OID, value, and/or set of controls.
-
-
Constructor Summary
Constructors Constructor Description IntermediateResponse(Operation operation, String oid, ByteString value, List<Control> controls)Creates a new intermediate response with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Control>getControls()Retrieves the set of controls for this intermediate response.StringgetOID()Retrieves the OID for this intermediate response.OperationgetOperation()Retrieves the operation with which this intermediate response message is associated.ByteStringgetValue()Retrieves the value for this intermediate response.voidsetOID(String oid)Specifies the OID for this intermediate response.voidsetValue(ByteString value)Specifies the value for this intermediate response.StringtoString()Retrieves a string representation of this intermediate response.
-
-
-
Constructor Detail
-
IntermediateResponse
public IntermediateResponse(Operation operation, String oid, ByteString value, List<Control> controls)
Creates a new intermediate response with the provided information.- Parameters:
operation- The operation with which this intermediate response is associated.oid- The OID for this intermediate response.value- The value for this intermediate response.controls- The set of controls to for this intermediate response.
-
-
Method Detail
-
getOperation
public Operation getOperation()
Retrieves the operation with which this intermediate response message is associated.- Returns:
- The operation with which this intermediate response message is associated.
-
getOID
public String getOID()
Retrieves the OID for this intermediate response.- Returns:
- The OID for this intermediate response, or
nullif there is none.
-
setOID
public void setOID(String oid)
Specifies the OID for this intermediate response.- Parameters:
oid- The OID for this intermediate response.
-
getValue
public ByteString getValue()
Retrieves the value for this intermediate response.- Returns:
- The value for this intermediate response, or
nullif there is none.
-
setValue
public void setValue(ByteString value)
Specifies the value for this intermediate response.- Parameters:
value- The value for this intermediate response.
-
getControls
public List<Control> getControls()
Retrieves the set of controls for this intermediate response. The contents of the list may be altered by intermediate response plugins.- Returns:
- The set of controls for this intermediate response.
-
-