Module evita.external.api.graphql
Record Class GraphQLSchemaHandler.GraphQLEndpointExchange
java.lang.Object
java.lang.Record
io.evitadb.externalApi.graphql.io.GraphQLSchemaHandler.GraphQLEndpointExchange
- All Implemented Interfaces:
io.evitadb.externalApi.http.EndpointExchange,AutoCloseable
- Enclosing class:
- GraphQLSchemaHandler
protected static record GraphQLSchemaHandler.GraphQLEndpointExchange(@Nonnull io.undertow.server.HttpServerExchange serverExchange, @Nonnull String httpMethod, @Nullable String requestBodyContentType, @Nullable String preferredResponseContentType)
extends Record
implements io.evitadb.externalApi.http.EndpointExchange
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGraphQLEndpointExchange(io.undertow.server.HttpServerExchange serverExchange, String httpMethod, String requestBodyContentType, String preferredResponseContentType) Creates an instance of aGraphQLEndpointExchangerecord class. -
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.Returns the value of thehttpMethodrecord component.Returns the value of thepreferredResponseContentTyperecord component.Returns the value of therequestBodyContentTyperecord component.io.undertow.server.HttpServerExchangeReturns the value of theserverExchangerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.evitadb.externalApi.http.EndpointExchange
close
-
Constructor Details
-
GraphQLEndpointExchange
protected GraphQLEndpointExchange(@Nonnull io.undertow.server.HttpServerExchange serverExchange, @Nonnull String httpMethod, @Nullable String requestBodyContentType, @Nullable String preferredResponseContentType) Creates an instance of aGraphQLEndpointExchangerecord class.- Parameters:
serverExchange- the value for theserverExchangerecord componenthttpMethod- the value for thehttpMethodrecord componentrequestBodyContentType- the value for therequestBodyContentTyperecord componentpreferredResponseContentType- the value for thepreferredResponseContentTyperecord 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). -
serverExchange
@Nonnull public io.undertow.server.HttpServerExchange serverExchange()Returns the value of theserverExchangerecord component.- Specified by:
serverExchangein interfaceio.evitadb.externalApi.http.EndpointExchange- Returns:
- the value of the
serverExchangerecord component
-
httpMethod
Returns the value of thehttpMethodrecord component.- Specified by:
httpMethodin interfaceio.evitadb.externalApi.http.EndpointExchange- Returns:
- the value of the
httpMethodrecord component
-
requestBodyContentType
Returns the value of therequestBodyContentTyperecord component.- Specified by:
requestBodyContentTypein interfaceio.evitadb.externalApi.http.EndpointExchange- Returns:
- the value of the
requestBodyContentTyperecord component
-
preferredResponseContentType
Returns the value of thepreferredResponseContentTyperecord component.- Specified by:
preferredResponseContentTypein interfaceio.evitadb.externalApi.http.EndpointExchange- Returns:
- the value of the
preferredResponseContentTyperecord component
-