Package org.restheart.polyglot.services
Class NodeService
java.lang.Object
org.restheart.polyglot.JSPlugin
org.restheart.polyglot.services.JSService
org.restheart.polyglot.services.NodeService
- All Implemented Interfaces:
CORSHeaders,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.JSPlugin
contextQueue, LOGGERFields inherited from interface org.restheart.exchange.CORSHeaders
ACCESS_CONTROL_ALLOW_CREDENTIAL, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS, DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_METHODS, DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN, DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS -
Method Summary
Modifier and TypeMethodDescriptionstatic Future<NodeService> get(Path scriptPath, Optional<com.mongodb.client.MongoClient> mclient, Configuration conf) voidhandle(StringRequest request, StringResponse response) Methods inherited from class org.restheart.polyglot.services.JSService
matchPolicy, secured, uriMethods inherited from class org.restheart.polyglot.JSPlugin
configuration, engine, getDescription, handleSource, mclient, name, releaseCtx, takeCtxMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.exchange.CORSHeaders
accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods, accessControlAllowOrigin, accessControlExposeHeadersMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.Service
handle, handleOptions, handleOptionsMethods inherited from interface org.restheart.plugins.StringService
request, requestInitializer, response, responseInitializer
-
Method Details
-
get
public static Future<NodeService> get(Path scriptPath, Optional<com.mongodb.client.MongoClient> mclient, Configuration conf) throws IOException - Throws:
IOException
-
handle
- Specified by:
handlein interfaceService<StringRequest,StringResponse>
-