Class JavalinGraphQLRequestParser

  • All Implemented Interfaces:
    com.expediagroup.graphql.server.execution.GraphQLRequestParser

    
    public final class JavalinGraphQLRequestParser
     implements GraphQLRequestParser<Context>
                        

    Parses the request body into a GraphQLServerRequest.

    We deliberately do not ask the mapper to deserialize the sealed GraphQLServerRequest directly: graphql-kotlin annotates it for Jackson 3 (tools.jackson) and fastjson2, while Javalin's default mapper is Jackson 2, so the sealed type has no deserializer it can see. Picking the concrete subtype here keeps the plugin working with whatever JsonMapper the application has configured instead of forcing a JSON library on it.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      GraphQLServerRequest parseRequest(Context request)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavalinGraphQLRequestParser

        JavalinGraphQLRequestParser()
    • Method Detail

      • parseRequest

         GraphQLServerRequest parseRequest(Context request)