Package org.restheart.polyglot
Class JavaScriptService
java.lang.Object
org.restheart.polyglot.AbstractJSPlugin
org.restheart.polyglot.JavaScriptService
- 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 TypeMethodDescriptionprotected org.graalvm.polyglot.Contextctx()voidhandle(StringRequest request, StringResponse response) Methods inherited from class org.restheart.polyglot.AbstractJSPlugin
addBindings, context, 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
-
handle
- Specified by:
handlein interfaceService<StringRequest,StringResponse>
-
ctx
protected org.graalvm.polyglot.Context ctx()- Overrides:
ctxin classAbstractJSPlugin- Returns:
- the Context associated with this thread. If not existing, it instanitates it.
-
getModulesReplacements
-