Package org.restheart.polyglot
Class NodeService
java.lang.Object
org.restheart.polyglot.AbstractJSPlugin
org.restheart.polyglot.NodeService
- All Implemented Interfaces:
ConfigurablePlugin,ExchangeTypeResolver<StringRequest,,StringResponse> HandlingPlugin<StringRequest,,StringResponse> Plugin,Service<StringRequest,,StringResponse> StringService
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.polyglot.AbstractJSPlugin
contextOptions, ctxs, description, engine, handles, handleSource, interceptPoint, isInterceptor, isService, matchPolicy, mclient, modulesReplacements, name, pluginArgs, pluginClass, secured, uri -
Method Summary
Modifier and TypeMethodDescriptionstatic Future<NodeService>voidhandle(StringRequest request, StringResponse response) Methods inherited from class org.restheart.polyglot.AbstractJSPlugin
addBindings, context, ctx, finalize, getDescription, getInterceptPoint, getMatchPolicy, getName, getPluginClass, getUri, handle, isSecuredMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.Service
handleOptionsMethods inherited from interface org.restheart.plugins.StringService
request, requestInitializer, response, responseInitializer
-
Method Details
-
get
public static Future<NodeService> get(Path scriptPath, com.mongodb.client.MongoClient mclient, Map<String, Object> pluginArgs) throws IOException- Throws:
IOException
-
handle
- Specified by:
handlein interfaceService<StringRequest,StringResponse>
-