Package org.graylog2.indexer.datanode
Record Class ProxyRequestAdapter.ProxyResponse
java.lang.Object
java.lang.Record
org.graylog2.indexer.datanode.ProxyRequestAdapter.ProxyResponse
- Enclosing interface:
- ProxyRequestAdapter
public static record ProxyRequestAdapter.ProxyResponse(int status, InputStream response)
extends Record
-
Constructor Summary
ConstructorDescriptionProxyResponse
(int status, InputStream response) Creates an instance of aProxyResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.response()
Returns the value of theresponse
record component.int
status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProxyResponse
Creates an instance of aProxyResponse
record class.- Parameters:
status
- the value for thestatus
record componentresponse
- the value for theresponse
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
status
public int status()Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
response
Returns the value of theresponse
record component.- Returns:
- the value of the
response
record component
-