Record Class IntermediateResponse
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.messages.IntermediateResponse
- Record Components:
oid
- the numeric OID associated with this intermediate response, ornull
if there is no value.value
- the value associated with this intermediate response, ornull
if there is no OID. Its format is defined by the specification of this intermediate response.controls
- theList
containing the controls.
- All Implemented Interfaces:
ProtocolOp
,Response
public record IntermediateResponse(String oid, ByteString value, List<Control> controls)
extends Record
implements Response
Provides a mechanism for communicating intermediate responses to the client.
-
Constructor Summary
ConstructorsConstructorDescriptionIntermediateResponse
(String oid, ByteString value, List<Control> controls) Creates a newIntermediateResponse
. -
Method Summary
Modifier and TypeMethodDescriptioncontrols()
Returns the value of thecontrols
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasValue()
Returnstrue
if this intermediate response has a value.oid()
Returns the value of theoid
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
addControl, addControls, containsControl, getControl, getControl, removeControls
-
Constructor Details
-
IntermediateResponse
Creates a newIntermediateResponse
.
-
-
Method Details
-
hasValue
public boolean hasValue()Returnstrue
if this intermediate response has a value. In some circumstances it may be useful to determine if an intermediate response has a value, without actually calculating the value and incurring any performance costs.- Returns:
true
if this intermediate response has a value, orfalse
if there is no value.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
oid
Returns the value of theoid
record component.- Returns:
- the value of the
oid
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
controls
Returns the value of thecontrols
record component.- Specified by:
controls
in interfaceProtocolOp
- Returns:
- the value of the
controls
record component
-