Package org.restheart.graphql
Class GraphQLService
java.lang.Object
org.restheart.graphql.GraphQLService
- All Implemented Interfaces:
ConfigurablePlugin,ExchangeTypeResolver<GraphQLRequest,MongoResponse>,HandlingPlugin<GraphQLRequest,MongoResponse>,Plugin,Service<GraphQLRequest,MongoResponse>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(GraphQLRequest request, MongoResponse response)voidvoidinitMongoClient(com.mongodb.MongoClient mClient)Function<io.undertow.server.HttpServerExchange,GraphQLRequest>request()Consumer<io.undertow.server.HttpServerExchange>Function<io.undertow.server.HttpServerExchange,MongoResponse>response()Consumer<io.undertow.server.HttpServerExchange>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.Service
handleOptions
-
Field Details
-
DEFAULT_APP_DEF_DB
- See Also:
- Constant Field Values
-
DEFAULT_APP_DEF_COLLECTION
- See Also:
- Constant Field Values
-
DEFAULT_VERBOSE
-
-
Constructor Details
-
GraphQLService
public GraphQLService()
-
-
Method Details
-
initConf
public void initConf(Map<String,Object> args) throws ConfigurationException, NoSuchFieldException, IllegalAccessException -
initMongoClient
public void initMongoClient(com.mongodb.MongoClient mClient) -
handle
- Specified by:
handlein interfaceService<GraphQLRequest,MongoResponse>- Throws:
Exception
-
requestInitializer
- Specified by:
requestInitializerin interfaceService<GraphQLRequest,MongoResponse>
-
responseInitializer
- Specified by:
responseInitializerin interfaceService<GraphQLRequest,MongoResponse>
-
request
- Specified by:
requestin interfaceService<GraphQLRequest,MongoResponse>
-
response
- Specified by:
responsein interfaceService<GraphQLRequest,MongoResponse>
-