3. Customise, CAPTCHA and CLI

Sometimes you just have to write your own component

c.jpg

Custom Serializers, Transformers and Generators prove invaluable for tight coupling to legacy protocols, interfaces and API's

Web Service, NNTP, EJB's, Charting, SAP

public class EJBTransform extends AbstractDOMTransformer
{
protected org.w3c.dom.Document transform(org.w3c.dom.Document document)
{
   org.w3c.dom.Document doc = null;
   try
   {
      Context ctx = new InitialContext();
      Object ejbClientHome =
         ctx.lookup("ejb/"+configuredEJBApp +
            "/com/ejb/services/clientmanager/ejb/ClientManager");
      com.ejb.services.clientmanager.ejb.ClientManagerHome clientManagerHome =
         (com.ejb.services.clientmanager.ejb.ClientManagerHome)
         javax.rmi.PortableRemoteObject.narrow((org.omg.CORBA.Object) ejbClientHome,
            com.ejb.services.clientmanager.ejb.ClientManagerHome.class);
      com.ejb.services.clientmanager.ejb._ClientManager_Stub clientManager =
         (com.ejb.services.clientmanager.ejb._ClientManager_Stub) clientManagerHome.create();
      String processData = convert( document );
      String updatedData = clientManager.saveClient( processData, "S" );

Completely Automated Public Turing test to tell Computers and Humans Apart

Transformer and Reader

custom.jpg

CLI Offline Generation Modem - http://forrest.apache.org/

Many Web 1.0 sites are directed graphs capable of being statically generated (finite user interaction = finite page tree)

<map:views>
   <map:view from-position="last" name="links">
      <map:serialize type="links"/>
   </map:view>
</map:views>

©Cocoon Technology Ltd