Class 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 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 null if 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 null if 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.
      • toString

        public String toString()
        Retrieves a string representation of this intermediate response.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this intermediate response.