com.ibm.ecm.extension
Class PluginAPI
- java.lang.Object
- com.ibm.ecm.extension.PluginAPI
- public abstract class PluginAPI
- extends java.lang.Object
Since:
2.0.3
Constructor Summary
Constructor and Description |
---|
PluginAPI()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
execute(PluginServiceCallbacks callbacks,javax.servlet.http.HttpServletRequest request,java.lang.Object[] arguments)
Performs the action of this API.
|
|
getId()
Returns the unique identifier for this API.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
PluginAPI
- public PluginAPI()
Method Detail
getId
- public abstract java.lang.String getId( )
Returns the unique identifier for this API.
Returns:
A
String
that is used to identify the API. execute
- public abstract java.lang.Object execute( PluginServiceCallbacks callbacks,
- javax.servlet.http.HttpServletRequest request,
- java.lang.Object[] arguments)
- throws java.lang.Exception
Performs the action of this API.
Parameters:
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. Throws:
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.