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, ornullif there is no value.value- the value associated with this intermediate response, ornullif there is no OID. Its format is defined by the specification of this intermediate response.controls- theListcontaining 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 thecontrolsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasValue()Returnstrueif this intermediate response has a value.oid()Returns the value of theoidrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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()Returnstrueif 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:
trueif this intermediate response has a value, orfalseif 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 theoidrecord component.- Returns:
- the value of the
oidrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
controls
Returns the value of thecontrolsrecord component.- Specified by:
controlsin interfaceProtocolOp- Returns:
- the value of the
controlsrecord component
-