com.ibm.ecm.extension
Class PluginResponseFilter
- java.lang.Object
- com.ibm.ecm.extension.PluginResponseFilter
- public abstract class PluginResponseFilter
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
PluginResponseFilter()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
filter(java.lang.String serverType,PluginServiceCallbacks callbacks,javax.servlet.http.HttpServletRequest request,JSONObject jsonResponse)
Filters the response from the service.
|
|
getFilteredServices()
Returns an array of the services that are extended by this filter.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
PluginResponseFilter
- public PluginResponseFilter()
Method Detail
getFilteredServices
- public abstract java.lang.String[] getFilteredServices( )
Returns an array of the services that are extended by this filter.
Returns:
A
String
array of names of the services. These are the servlet paths or Struts action names. filter
- public abstract void filter(java.lang.String serverType,
- PluginServiceCallbacks callbacks,
- javax.servlet.http.HttpServletRequest request,
- JSONObject jsonResponse)
- throws java.lang.Exception
Filters the response from the service.
Parameters:
serverType
- A String
that indicates the type of server that is associated with the service. This value can be
one or more of the following values separated by commas:
Server Type | Description |
---|---|
p8 |
IBM FileNet P8 |
cm |
IBM Content Manager |
od |
IBM Content Manager OnDemand |
common |
For services that are not associated with a particular server |
callbacks
- An instance of the PluginServiceCallbacks
class that
contains functions that can be used by the service. These functions provide access to plug-in configuration and content
server APIs. request
- An HttpServletRequest
object that provides the request. The service can access the invocation parameters from the
request. jsonResponse
- The JSONObject
object that is generated by the service. Typically, this object is serialized and sent as the response.
The filter modifies this object to change the response that is sent. Throws:
java.lang.Exception
- For exceptions that occur when the service is running. Information about the exception is logged as
part of the client logging and an error response is automatically generated and returned.