org.ow2.petals.bc.ftp.service
Class FTPService

java.lang.Object
  extended by org.ow2.petals.bc.ftp.service.FTPService

public class FTPService
extends java.lang.Object

The FTP JBI listener. Writes a file to FTP server on incoming JBI message.

Author:
alouis

Constructor Summary
FTPService(java.util.logging.Logger logger)
           
 
Method Summary
 void processDel(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessage, WrappedFTPClient client)
          FTP DEL Operation
 void processDir(org.ow2.petals.component.framework.api.message.Exchange exchange, WrappedFTPClient client)
          FTP DIR operation.
 void processGet(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessage, WrappedFTPClient client)
          FTP GET operation
get the file as a source message a Fault is returned for bad request or IO problems
 void processGetAsAttachment(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessage, WrappedFTPClient client)
          FTP GET operation
get the file as a source message a Fault is returned for bad request or IO problems
 void processMGet(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessage, WrappedFTPClient client)
          FTP MGET operation
All files are getted as attachments
 void processMPut(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inputDocument, WrappedFTPClient client)
          Put attachments on the ftp server TODO an FTP connection is done for each file...
 void processPut(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessage, WrappedFTPClient client)
          Put the source on the ftp server with the given filename a Fault is returned on IO problems TODO the content to send is a String, which is not optimal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPService

public FTPService(java.util.logging.Logger logger)
Method Detail

processDel

public void processDel(org.ow2.petals.component.framework.api.message.Exchange exchange,
                       org.w3c.dom.Document inMessage,
                       WrappedFTPClient client)
                throws javax.jbi.messaging.MessagingException,
                       MissingElementException
FTP DEL Operation

Parameters:
exchange -
connectionInfo -
inMessage -
Throws:
MissingElementException
java.lang.Exception
javax.jbi.messaging.MessagingException

processDir

public void processDir(org.ow2.petals.component.framework.api.message.Exchange exchange,
                       WrappedFTPClient client)
                throws javax.jbi.messaging.MessagingException
FTP DIR operation.
a Fault is returned for bad request or IO problems

Parameters:
exchange - the message exchange, MUST be non null
Throws:
javax.jbi.messaging.MessagingException - bad MEP

processGet

public void processGet(org.ow2.petals.component.framework.api.message.Exchange exchange,
                       org.w3c.dom.Document inMessage,
                       WrappedFTPClient client)
                throws javax.jbi.messaging.MessagingException
FTP GET operation
get the file as a source message a Fault is returned for bad request or IO problems

Parameters:
exchange - the message exchange, MUST be non null
connectionInfo -
inMessage -
Throws:
javax.jbi.messaging.MessagingException - bad MEP

processGetAsAttachment

public void processGetAsAttachment(org.ow2.petals.component.framework.api.message.Exchange exchange,
                                   org.w3c.dom.Document inMessage,
                                   WrappedFTPClient client)
                            throws javax.jbi.messaging.MessagingException
FTP GET operation
get the file as a source message a Fault is returned for bad request or IO problems

Parameters:
exchange - the message exchange, MUST be non null
connectionInfo -
inMessage -
Throws:
javax.jbi.messaging.MessagingException - bad MEP

processMGet

public void processMGet(org.ow2.petals.component.framework.api.message.Exchange exchange,
                        org.w3c.dom.Document inMessage,
                        WrappedFTPClient client)
                 throws javax.jbi.messaging.MessagingException
FTP MGET operation
All files are getted as attachments

Parameters:
exchange -
connectionInfo -
inMessage -
Throws:
java.lang.Exception
javax.jbi.messaging.MessagingException

processMPut

public void processMPut(org.ow2.petals.component.framework.api.message.Exchange exchange,
                        org.w3c.dom.Document inputDocument,
                        WrappedFTPClient client)
                 throws javax.jbi.messaging.MessagingException
Put attachments on the ftp server TODO an FTP connection is done for each file...

Parameters:
exchange -
connectionInfo -
Throws:
javax.jbi.messaging.MessagingException

processPut

public void processPut(org.ow2.petals.component.framework.api.message.Exchange exchange,
                       org.w3c.dom.Document inMessage,
                       WrappedFTPClient client)
                throws javax.jbi.messaging.MessagingException,
                       MissingElementException
Put the source on the ftp server with the given filename a Fault is returned on IO problems TODO the content to send is a String, which is not optimal

Parameters:
exchange -
fileName -
connectionInfo -
inMessage -
Throws:
javax.jbi.messaging.MessagingException
MissingElementException


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.