Class GroovyInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.lang.AbstractScriptInterceptor
com.predic8.membrane.core.interceptor.groovy.GroovyInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Executes a Groovy script. The script can access and manipulate data from the request and response. Use this or the Javascript plugin to extend the functions of Membrane by scripting. See: example/groovy for working samples
- Topic
- 4. Interceptors/Features
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields 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
-
Constructor Details
-
GroovyInterceptor
public GroovyInterceptor()
-
-
Method Details
-
initInternal
protected void initInternal()- Specified by:
initInternalin classAbstractScriptInterceptor
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor- Overrides:
getLongDescriptionin classAbstractInterceptor
-