public interface IInterceptor
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getMaxExecutionTimeSeconds() |
java.lang.Integer |
getMaxFutureThreadPoolSize() |
java.lang.Object |
onGetBeanProperty(IInvoker invoker,
java.lang.Object receiver,
java.lang.String property)
Gets a Java Bean property
|
java.lang.Object |
onGetInstanceField(IInvoker invoker,
java.lang.Object receiver,
java.lang.String fieldName)
Get an instance field's value
|
java.lang.Object |
onGetStaticField(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.String fieldName)
Get a static field's value
|
java.lang.Object |
onInvokeConstructor(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.Object... args)
Invokes a constructor
|
java.lang.Object |
onInvokeInstanceMethod(IInvoker invoker,
java.lang.Object receiver,
java.lang.String method,
java.lang.Object... args)
Invokes an instance method
|
java.lang.Object |
onInvokeStaticMethod(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.String method,
java.lang.Object... args)
Invokes a static method
|
byte[] |
onLoadClassPathResource(java.lang.String resourceName)
Loads a classpath resource
|
java.lang.String |
onReadSystemEnv(java.lang.String name)
Reads a Java environment variable
|
java.lang.String |
onReadSystemProperty(java.lang.String propertyName)
Reads a Java system property
|
void |
onSetBeanProperty(IInvoker invoker,
java.lang.Object receiver,
java.lang.String property,
java.lang.Object value)
Sets a Java Bean property
|
void |
validateLoadModule(java.lang.String moduleName)
Validates the load of a module
|
void |
validateVeniceFunction(java.lang.String funcName)
Validates the invocation of a Venice function.
|
java.lang.Object onInvokeInstanceMethod(IInvoker invoker, java.lang.Object receiver, java.lang.String method, java.lang.Object... args) throws java.lang.SecurityException
invoker - the invokerreceiver - an objectmethod - a methodargs - a list of argumentsjava.lang.SecurityException - if the instance method is not whitelistedjava.lang.Object onInvokeStaticMethod(IInvoker invoker, java.lang.Class<?> receiver, java.lang.String method, java.lang.Object... args) throws java.lang.SecurityException
invoker - the invokerreceiver - a classmethod - a methodargs - a list of argumentsjava.lang.SecurityException - if the static method is not whitelistedjava.lang.Object onInvokeConstructor(IInvoker invoker, java.lang.Class<?> receiver, java.lang.Object... args) throws java.lang.SecurityException
invoker - the invokerreceiver - a classargs - a list of argumentsjava.lang.SecurityException - if the constructor is not whitelistedjava.lang.Object onGetBeanProperty(IInvoker invoker, java.lang.Object receiver, java.lang.String property) throws java.lang.SecurityException
invoker - the invokerreceiver - an objectproperty - a property namejava.lang.SecurityException - if the bean property (instance method) is not whitelistedvoid onSetBeanProperty(IInvoker invoker, java.lang.Object receiver, java.lang.String property, java.lang.Object value) throws java.lang.SecurityException
invoker - the invokerreceiver - an objectproperty - a property namevalue - a property valuejava.lang.SecurityException - if the bean property (instance method) is not whitelistedjava.lang.Object onGetStaticField(IInvoker invoker, java.lang.Class<?> receiver, java.lang.String fieldName) throws java.lang.SecurityException
invoker - the invokerreceiver - a classfieldName - a field namejava.lang.SecurityException - if the static field is not whitelistedjava.lang.Object onGetInstanceField(IInvoker invoker, java.lang.Object receiver, java.lang.String fieldName) throws java.lang.SecurityException
invoker - the invokerreceiver - an objectfieldName - a field namejava.lang.SecurityException - if the instance field is not whitelistedbyte[] onLoadClassPathResource(java.lang.String resourceName)
throws java.lang.SecurityException
resourceName - a resource name (e.g.: /foo/org/image.png)java.lang.SecurityException - if the classpath resource is not whitelistedjava.lang.String onReadSystemProperty(java.lang.String propertyName)
throws java.lang.SecurityException
propertyName - a property name (e.g: user.home)java.lang.SecurityException - if the property is not whitelistedjava.lang.String onReadSystemEnv(java.lang.String name)
throws java.lang.SecurityException
name - a variable name (e.g: USER)java.lang.SecurityException - if the variable is not whitelistedvoid validateLoadModule(java.lang.String moduleName)
throws java.lang.SecurityException
moduleName - the module namejava.lang.SecurityException - if the module is blacklistedvoid validateVeniceFunction(java.lang.String funcName)
throws java.lang.SecurityException
funcName - A venice function namejava.lang.SecurityException - if the function is blacklisted and not allowed to be invoked.java.lang.Integer getMaxExecutionTimeSeconds()
Sandbox is allowed to run.java.lang.Integer getMaxFutureThreadPoolSize()
Sandbox is allowed to use.