Package org.graylog2.indexer.datanode
Record Class ProxyRequestAdapter.ProxyRequest
java.lang.Object
java.lang.Record
org.graylog2.indexer.datanode.ProxyRequestAdapter.ProxyRequest
- Enclosing interface:
- ProxyRequestAdapter
-
Constructor Summary
ConstructorsConstructorDescriptionProxyRequest(String method, String path, InputStream body, String hostname, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParameters) Creates an instance of aProxyRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.method()Returns the value of themethodrecord component.path()Returns the value of thepathrecord component.Returns the value of thequeryParametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProxyRequest
public ProxyRequest(String method, String path, InputStream body, String hostname, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParameters) Creates an instance of aProxyRequestrecord class.- Parameters:
method- the value for themethodrecord componentpath- the value for thepathrecord componentbody- the value for thebodyrecord componenthostname- the value for thehostnamerecord componentqueryParameters- the value for thequeryParametersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
queryParameters
Returns the value of thequeryParametersrecord component.- Returns:
- the value of the
queryParametersrecord component
-