Package de.gematik.ncpeh.api.common
Record Class WrappedHttpMessage
java.lang.Object
java.lang.Record
de.gematik.ncpeh.api.common.WrappedHttpMessage
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedHttpMessage(byte[] httpHeader, byte[] httpBody) Creates an instance of aWrappedHttpMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]httpBody()Returns the value of thehttpBodyrecord component.byte[]Returns the value of thehttpHeaderrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
WrappedHttpMessage
public WrappedHttpMessage(byte[] httpHeader, byte[] httpBody) Creates an instance of aWrappedHttpMessagerecord class.- Parameters:
httpHeader- the value for thehttpHeaderrecord componenthttpBody- the value for thehttpBodyrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
httpHeader
public byte[] httpHeader()Returns the value of thehttpHeaderrecord component.- Returns:
- the value of the
httpHeaderrecord component
-
httpBody
public byte[] httpBody()Returns the value of thehttpBodyrecord component.- Returns:
- the value of the
httpBodyrecord component
-