Package org.apache.tika.parser.vlm
Record Class AbstractVLMParser.HttpCall
java.lang.Object
java.lang.Record
org.apache.tika.parser.vlm.AbstractVLMParser.HttpCall
- Record Components:
url- full request URL (base + path)json- serialized JSON request bodyheaders- additional HTTP headers (e.g. Authorization)
- Enclosing class:
- AbstractVLMParser
protected static record AbstractVLMParser.HttpCall(String url, String json, Map<String,String> headers)
extends Record
Encapsulates a fully built HTTP request for a VLM API call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.json()Returns the value of thejsonrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
json
Returns the value of thejsonrecord component.- Returns:
- the value of the
jsonrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-