org.ow2.petals.bc.ftp.listener
Class JBIListener

java.lang.Object
  extended by org.ow2.petals.component.framework.listener.AbstractListener
      extended by org.ow2.petals.component.framework.listener.AbstractJBIListener
          extended by org.ow2.petals.bc.ftp.listener.JBIListener

public class JBIListener
extends org.ow2.petals.component.framework.listener.AbstractJBIListener

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

Author:
alouis, "Mathieu CARROLLE - mathieu.carrolle@petalslink.com"

Field Summary
 
Fields inherited from class org.ow2.petals.component.framework.listener.AbstractListener
component, factory, messageInterceptorProcessor
 
Constructor Summary
JBIListener()
           
 
Method Summary
 void init()
           
 boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
          process the exchange depending on the operation: dir return the filenames list or the remote directory get return the remote file with the name specified in the exchange (as attachment or source, depending on the SU property) mget return all the remote files put put the message mput put attachments
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractJBIListener
onAsyncJBIMessage, onExpiredAsyncJBIMessage
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractListener
createConsumeExchange, createConsumeExchange, createExchange, getComponent, getComponentContext, getConsumes, getCurrentTransaction, getExtensions, getInstallRoot, getLogger, getMessageInterceptorProcessor, getProvides, init, retrievePattern, send, sendAsync, sendSync, sendSync, setConsumes, setCurrentTransaction, setExtensions, setProvides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBIListener

public JBIListener()
Method Detail

init

public void init()
Overrides:
init in class org.ow2.petals.component.framework.listener.AbstractListener

onJBIMessage

public boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
process the exchange depending on the operation:
  • dir return the filenames list or the remote directory
  • get return the remote file with the name specified in the exchange (as attachment or source, depending on the SU property)
  • mget return all the remote files
  • put put the message
  • mput put attachments
  • Specified by:
    onJBIMessage in class org.ow2.petals.component.framework.listener.AbstractJBIListener


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