Package com.helger.phase4.messaging.http
Record Class GenericAS4HttpResponseHandler.HttpResponseData
java.lang.Object
java.lang.Record
com.helger.phase4.messaging.http.GenericAS4HttpResponseHandler.HttpResponseData
- Enclosing class:
GenericAS4HttpResponseHandler
public static record GenericAS4HttpResponseHandler.HttpResponseData(@NonNull org.apache.hc.core5.http.message.StatusLine statusLine, @NonNull org.apache.hc.core5.http.HttpEntity entity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseData(@NonNull org.apache.hc.core5.http.message.StatusLine statusLine, @NonNull org.apache.hc.core5.http.HttpEntity entity) Creates an instance of aHttpResponseDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull org.apache.hc.core5.http.HttpEntityentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.@NonNull org.apache.hc.core5.http.message.StatusLineReturns the value of thestatusLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HttpResponseData
public HttpResponseData(@NonNull org.apache.hc.core5.http.message.StatusLine statusLine, @NonNull org.apache.hc.core5.http.HttpEntity entity) Creates an instance of aHttpResponseDatarecord class.- Parameters:
statusLine- the value for thestatusLinerecord componententity- the value for theentityrecord component
-
-
Method Details
-
getStatusCode
@Nonnegative public int getStatusCode() -
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). -
statusLine
public @NonNull org.apache.hc.core5.http.message.StatusLine statusLine()Returns the value of thestatusLinerecord component.- Returns:
- the value of the
statusLinerecord component
-
entity
public @NonNull org.apache.hc.core5.http.HttpEntity entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-