Class AbstractGraphqlService
java.lang.Object
com.linecorp.armeria.server.AbstractHttpService
com.linecorp.armeria.server.graphql.protocol.AbstractGraphqlService
- All Implemented Interfaces:
Unwrappable,HttpService,Service<HttpRequest,HttpResponse>
A skeletal GraphQL HTTP service implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpResponsedoGet(ServiceRequestContext ctx, HttpRequest req) Handles aGETrequest.protected HttpResponsedoPost(ServiceRequestContext ctx, HttpRequest request) Handles aPOSTrequest.exchangeType(RoutingContext routingContext) protected abstract HttpResponseHandles aGraphqlRequest.Methods inherited from class com.linecorp.armeria.server.AbstractHttpService
doConnect, doDelete, doHead, doOptions, doPatch, doPut, doTrace, serveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorateMethods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrapMethods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Constructor Details
-
AbstractGraphqlService
public AbstractGraphqlService()
-
-
Method Details
-
doGet
Description copied from class:AbstractHttpServiceHandles aGETrequest. This method sends a405 Method Not Allowedresponse by default.- Overrides:
doGetin classAbstractHttpService- Throws:
Exception
-
doPost
Description copied from class:AbstractHttpServiceHandles aPOSTrequest. This method sends a405 Method Not Allowedresponse by default.- Overrides:
doPostin classAbstractHttpService- Throws:
Exception
-
exchangeType
Description copied from interface:HttpServiceDetermines anExchangeTypefor thisHttpServicefrom the givenRoutingContext. By default,ExchangeType.BIDI_STREAMINGis set.Note that an
HttpRequestwill be aggregated before serving theHttpServiceifExchangeType.UNARYorExchangeType.RESPONSE_STREAMINGis set. -
executeGraphql
protected abstract HttpResponse executeGraphql(ServiceRequestContext ctx, GraphqlRequest req) throws Exception Handles aGraphqlRequest.- Throws:
Exception
-