org.ow2.petals.bc.filetransfer.service.provide
Class GetFileService

java.lang.Object
  extended by org.ow2.petals.bc.filetransfer.service.provide.AbstractFileService
      extended by org.ow2.petals.bc.filetransfer.service.provide.GetFileService

public class GetFileService
extends AbstractFileService

Get the file in the configured directory (parameter : folder) and set it in the out-message payload.

Author:
”Mathieu CARROLLE - mathieu.carrolle@petalslink.com”

Field Summary
 
Fields inherited from class org.ow2.petals.bc.filetransfer.service.provide.AbstractFileService
extensions, logger
 
Constructor Summary
GetFileService(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions, java.util.logging.Logger logger)
           
 
Method Summary
 void process(org.ow2.petals.component.framework.api.message.Exchange exchange, org.w3c.dom.Document inMessageDoc)
          Process the exchange : get the file in the configured directory,
using filename set in the exchange
file is returned as OUT response (assume the file is an XML file)
return the first file
the file is move/deleted after read
 
Methods inherited from class org.ow2.petals.bc.filetransfer.service.provide.AbstractFileService
getTargetFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetFileService

public GetFileService(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
                      java.util.logging.Logger logger)
Method Detail

process

public void process(org.ow2.petals.component.framework.api.message.Exchange exchange,
                    org.w3c.dom.Document inMessageDoc)
             throws javax.jbi.messaging.MessagingException
Process the exchange : get the file in the configured directory,
using filename set in the exchange
file is returned as OUT response (assume the file is an XML file)
return the first file
the file is move/deleted after read

Specified by:
process in class AbstractFileService
Throws:
javax.jbi.JBIException
javax.jbi.messaging.MessagingException


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