Package io.openems.edge.bridge.http.api
Record Class BridgeHttp.Endpoint
java.lang.Object
java.lang.Record
io.openems.edge.bridge.http.api.BridgeHttp.Endpoint
- Enclosing interface:
BridgeHttp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns the value of thebody
record component.int
Returns the value of theconnectTimeout
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.method()
Returns the value of themethod
record component.Returns the value of theproperties
record component.int
Returns the value of thereadTimeout
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Constructor Details
-
Endpoint
public Endpoint(String url, HttpMethod method, int connectTimeout, int readTimeout, String body, Map<String, String> properties) Creates an instance of aEndpoint
record class.- Parameters:
url
- the value for theurl
record componentmethod
- the value for themethod
record componentconnectTimeout
- the value for theconnectTimeout
record componentreadTimeout
- the value for thereadTimeout
record componentbody
- the value for thebody
record componentproperties
- the value for theproperties
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 '=='. -
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
connectTimeout
public int connectTimeout()Returns the value of theconnectTimeout
record component.- Returns:
- the value of the
connectTimeout
record component
-
readTimeout
public int readTimeout()Returns the value of thereadTimeout
record component.- Returns:
- the value of the
readTimeout
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-