Class JavascriptInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.lang.AbstractScriptInterceptor
com.predic8.membrane.core.interceptor.javascript.JavascriptInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Executes a Javascript. The script can access and manipulate data from the request and response. Use this or the Groovy plugin to extend the functions of Membrane by scripting. See the samples in examples/javascript.
- Topic
- 4. Interceptors/Features
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
FieldsFields inherited from class com.predic8.membrane.core.lang.AbstractScriptInterceptor
om, script, srcFields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethods inherited from class com.predic8.membrane.core.lang.AbstractScriptInterceptor
getSrc, handleAbort, handleRequest, handleResponse, handleScriptExecutionException, init, runScript, setSrcMethods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getMessage, getRouter, getRule, init, setDisplayName, setFlow
-
Field Details
-
adapter
-
-
Constructor Details
-
JavascriptInterceptor
public JavascriptInterceptor()
-
-
Method Details
-
initInternal
- Specified by:
initInternalin classAbstractScriptInterceptor- Throws:
IOExceptionClassNotFoundException
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor- Overrides:
getLongDescriptionin classAbstractInterceptor
-