Package ch.so.agi.gretl.internal.http
Record Class CurlRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.http.CurlRequest
-
Constructor Summary
ConstructorsConstructorDescriptionCurlRequest(String serverUrl, CurlMethod method, Integer expectedStatusCode, String expectedBody, Map<String, String> headers, Map<String, Object> formData, String data, Path dataBinary, Path outputFile, String user, String password) Creates an instance of aCurlRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.Returns the value of thedataBinaryrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedBodyrecord component.Returns the value of theexpectedStatusCoderecord component.formData()Returns the value of theformDatarecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.method()Returns the value of themethodrecord component.Returns the value of theoutputFilerecord component.password()Returns the value of thepasswordrecord component.Returns the value of theserverUrlrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
CurlRequest
public CurlRequest(String serverUrl, CurlMethod method, Integer expectedStatusCode, String expectedBody, Map<String, String> headers, Map<String, Object> formData, String data, Path dataBinary, Path outputFile, String user, String password) Creates an instance of aCurlRequestrecord class.- Parameters:
serverUrl- the value for theserverUrlrecord componentmethod- the value for themethodrecord componentexpectedStatusCode- the value for theexpectedStatusCoderecord componentexpectedBody- the value for theexpectedBodyrecord componentheaders- the value for theheadersrecord componentformData- the value for theformDatarecord componentdata- the value for thedatarecord componentdataBinary- the value for thedataBinaryrecord componentoutputFile- the value for theoutputFilerecord componentuser- the value for theuserrecord componentpassword- the value for thepasswordrecord 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). -
serverUrl
Returns the value of theserverUrlrecord component.- Returns:
- the value of the
serverUrlrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
expectedStatusCode
Returns the value of theexpectedStatusCoderecord component.- Returns:
- the value of the
expectedStatusCoderecord component
-
expectedBody
Returns the value of theexpectedBodyrecord component.- Returns:
- the value of the
expectedBodyrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
formData
Returns the value of theformDatarecord component.- Returns:
- the value of the
formDatarecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
dataBinary
Returns the value of thedataBinaryrecord component.- Returns:
- the value of the
dataBinaryrecord component
-
outputFile
Returns the value of theoutputFilerecord component.- Returns:
- the value of the
outputFilerecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-