com.ibm.commerce.struts

Class ComponentServiceAction



  • public class ComponentServiceAction
    extends BaseAction
    The Component Service Action class provides a Struts Action implementation that can be used to invoke a component service. The configured action mapping parameter must be of the form "id.clientMethod" where "id" is the configured component ID and "clientMethod" is the web friendly method on the component client facade that will be used to invoke the component service. The client facade must be configured in the struts-config.xml file using the ComponentPlugIn plug-in implementation.

    The following example demonstrates a possible component client facade configuration:

     <plug-in className="com.ibm.commerce.struts.ComponentPlugIn">
       <set-property property="componentId" value="order"/>
       <set-property property="clientFacadeClassName" value="com.ibm.commerce.order.facade.client.OrderFacadeClient"/>
     </plug-in>
     

    This component facade declaration could then be referenced in an action mapping declaration:

     <action
         parameter="order.submitOrder"
         path="/SubmitOrder" type="com.ibm.commerce.struts.ComponentServiceAction">
       <set-property property="authenticate" value="0:0"/>
       <set-property property="https" value="0:1"/>
     </action>
     
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ComponentServiceAction()
      Construct new instance of the component service action.
    • Method Summary

      • Methods inherited from class org.apache.struts.action.Action

        execute, getServlet, setServlet
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ComponentServiceAction

        public ComponentServiceAction()
        Construct new instance of the component service action.