public abstract class PluginAPI
extends java.lang.Object
| Constructor and Description |
|---|
PluginAPI() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
execute(PluginServiceCallbacks callbacks,
javax.servlet.http.HttpServletRequest request,
java.lang.Object[] arguments)
Performs the action of this API.
|
abstract java.lang.String |
getId()
Returns the unique identifier for this API.
|
public abstract java.lang.String getId()
String that is used to identify the API.public abstract java.lang.Object execute(PluginServiceCallbacks callbacks, javax.servlet.http.HttpServletRequest request, java.lang.Object[] arguments) throws java.lang.Exception
callbacks - An instance of the PluginServiceCallbacks class that contains several functions that can
be used by the plug-in API. These functions provide access to the plug-in configuration and content
server APIs.request - The HttpServletRequest from the current request being processed. The service can access
the invocation parameters from the request as well as session state.arguments - An object array containing the input arguments to the API. The particular structure of these object is
defined by the plug-in API writer. The classes of the objects used as arguments should be J2SE classes
or instances of com.ibm.ecm.json as any plug-in specific classes will be loaded by different
classloaders causing class cast exceptions when attempting to pass instances from one plug-in to
another.java.lang.Exception - For exceptions that occur when the API is running. If the logging level is high enough to log errors,
information about the exception is logged by IBM Content Navigator.