Record Class DefaultHttpClientRequest
java.lang.Object
java.lang.Record
ru.tinkoff.kora.http.client.common.request.DefaultHttpClientRequest
- All Implemented Interfaces:
HttpClientRequest
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpClientRequest(String method, URI uri, String uriTemplate, ru.tinkoff.kora.http.common.header.MutableHttpHeaders headers, ru.tinkoff.kora.http.common.body.HttpBodyOutput body, Duration requestTimeout) Creates an instance of aDefaultHttpClientRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionru.tinkoff.kora.http.common.body.HttpBodyOutputbody()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.ru.tinkoff.kora.http.common.header.MutableHttpHeadersheaders()Returns the value of theheadersrecord component.method()Returns the value of themethodrecord component.Returns the value of therequestTimeoutrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.Returns the value of theuriTemplaterecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.http.client.common.request.HttpClientRequest
toBuilder
-
Constructor Details
-
DefaultHttpClientRequest
public DefaultHttpClientRequest(String method, URI uri, String uriTemplate, ru.tinkoff.kora.http.common.header.MutableHttpHeaders headers, ru.tinkoff.kora.http.common.body.HttpBodyOutput body, @Nullable Duration requestTimeout) Creates an instance of aDefaultHttpClientRequestrecord class.- Parameters:
method- the value for themethodrecord componenturi- the value for theurirecord componenturiTemplate- the value for theuriTemplaterecord componentheaders- the value for theheadersrecord componentbody- the value for thebodyrecord componentrequestTimeout- the value for therequestTimeoutrecord 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.- Specified by:
methodin interfaceHttpClientRequest- Returns:
- the value of the
methodrecord component
-
uri
Returns the value of theurirecord component.- Specified by:
uriin interfaceHttpClientRequest- Returns:
- the value of the
urirecord component
-
uriTemplate
Returns the value of theuriTemplaterecord component.- Specified by:
uriTemplatein interfaceHttpClientRequest- Returns:
- the value of the
uriTemplaterecord component
-
headers
public ru.tinkoff.kora.http.common.header.MutableHttpHeaders headers()Returns the value of theheadersrecord component.- Specified by:
headersin interfaceHttpClientRequest- Returns:
- the value of the
headersrecord component
-
body
public ru.tinkoff.kora.http.common.body.HttpBodyOutput body()Returns the value of thebodyrecord component.- Specified by:
bodyin interfaceHttpClientRequest- Returns:
- the value of the
bodyrecord component
-
requestTimeout
Returns the value of therequestTimeoutrecord component.- Specified by:
requestTimeoutin interfaceHttpClientRequest- Returns:
- the value of the
requestTimeoutrecord component
-