Service requests extension point
This extension point is used to define a service request used to locate and run the associated request handler class.
Identifier:
com.ibm.commerce.telesales.core.serviceRequests
Description:
This extension point is used to define a service request used to locate and run the associated request handler class.
Configuration Markup:
<!ELEMENT extension (serviceRequest*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - The fully qualified identifier of the target extension point.
- id - An optional identifier for the target extension point
- name - An optional name for the extension instance
<!ELEMENT serviceRequest EMPTY>
<!ATTLIST serviceRequest
id CDATA #REQUIRED
label CDATA #REQUIRED
requestHandlerClass CDATA #REQUIRED
commServiceId IDREF #REQUIRED
errorHandler IDREF #IMPLIED>
- id - A unique name that will be used to identify this service request.
- label - A translatable label that will be used to represent this service request to the user.
- requestHandlerClass - The target class must have a default
(no-argument) constructor, and must implement interface
com.ibm.commerce.telesales.core.ITelesalesRequestHandler
. You can also extend classcom.ibm.commerce.telesales.core.impl.request.TelesalesRequest
, which provides a base class for creating BOD request messages. - commServiceId - The commServiceId attribute must indicate the ID of a commServices extension that is to be used by this service request.
- errorHandler - The errorHandler attribute must indicate the ID of a errorHandler extension that is to be used by this service request.
Examples:
The following is an example for the service requests extension point:
<extension point="com.ibm.commerce.telesales.core.serviceRequests">
<serviceRequest
label="%serviceRequestLogon"
requestHandlerClass="com.ibm.commerce.telesales.core.impl.request.ProcessLogonRequest"
id="com.ibm.commerce.telesales.logon"
commServiceId="com.ibm.commerce.telesales.services.TsCommunication"
errorHandler="com.ibm.commerce.telesales.StandardErrorHandler">
</extension>
Supplied Implementation:
The workbench uses the registered service requests from this extension to run service requests.