Record Class GraphQLHandler.GraphQLEndpointExchange

java.lang.Object
java.lang.Record
io.evitadb.externalApi.graphql.io.GraphQLHandler.GraphQLEndpointExchange
All Implemented Interfaces:
io.evitadb.externalApi.http.EndpointExchange, AutoCloseable
Enclosing class:
GraphQLHandler

protected static record GraphQLHandler.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

    Constructors
    Modifier
    Constructor
    Description
    protected
    GraphQLEndpointExchange(io.undertow.server.HttpServerExchange serverExchange, String httpMethod, String requestBodyContentType, String preferredResponseContentType)
    Creates an instance of a GraphQLEndpointExchange record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the httpMethod record component.
    Returns the value of the preferredResponseContentType record component.
    Returns the value of the requestBodyContentType record component.
    io.undertow.server.HttpServerExchange
    Returns the value of the serverExchange record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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 a GraphQLEndpointExchange record class.
      Parameters:
      serverExchange - the value for the serverExchange record component
      httpMethod - the value for the httpMethod record component
      requestBodyContentType - the value for the requestBodyContentType record component
      preferredResponseContentType - the value for the preferredResponseContentType record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serverExchange

      @Nonnull public io.undertow.server.HttpServerExchange serverExchange()
      Returns the value of the serverExchange record component.
      Specified by:
      serverExchange in interface io.evitadb.externalApi.http.EndpointExchange
      Returns:
      the value of the serverExchange record component
    • httpMethod

      @Nonnull public String httpMethod()
      Returns the value of the httpMethod record component.
      Specified by:
      httpMethod in interface io.evitadb.externalApi.http.EndpointExchange
      Returns:
      the value of the httpMethod record component
    • requestBodyContentType

      @Nullable public String requestBodyContentType()
      Returns the value of the requestBodyContentType record component.
      Specified by:
      requestBodyContentType in interface io.evitadb.externalApi.http.EndpointExchange
      Returns:
      the value of the requestBodyContentType record component
    • preferredResponseContentType

      @Nullable public String preferredResponseContentType()
      Returns the value of the preferredResponseContentType record component.
      Specified by:
      preferredResponseContentType in interface io.evitadb.externalApi.http.EndpointExchange
      Returns:
      the value of the preferredResponseContentType record component