org.ow2.petals.bc.ftp
Class FTPUtil

java.lang.Object
  extended by org.ow2.petals.bc.ftp.FTPUtil

public class FTPUtil
extends java.lang.Object

Author:
Adrien LOUIS - EBM WebSourcing, Mathieu CARROLLE - EBM WebSourcing

Constructor Summary
FTPUtil()
           
 
Method Summary
static java.lang.String generateFileNameList(java.util.List<java.lang.String> names, javax.xml.namespace.QName operation)
          generates the XML representation of the file name list
static org.w3c.dom.Document generateMTOMListResponse(java.util.List<java.lang.String> names, javax.xml.namespace.QName operation)
          Generate a MTOM response for a list of files.
static org.w3c.dom.Document generateMTOMResponse(java.lang.String names, javax.xml.namespace.QName operation)
          Generate a MTOM response for a single file.
static java.lang.String getOperationValidMep(java.lang.String operation, org.ow2.petals.component.framework.api.Message.MEPConstants... mep)
          Build a message to indicate the mep available for this operation.
static void setIOFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange, java.lang.String ioMessage)
           
static void setMissingElementFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange, java.lang.String missingElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPUtil

public FTPUtil()
Method Detail

getOperationValidMep

public static java.lang.String getOperationValidMep(java.lang.String operation,
                                                    org.ow2.petals.component.framework.api.Message.MEPConstants... mep)
Build a message to indicate the mep available for this operation. TODO : Move it in the cdk api.

Parameters:
operation - operation name
mep - allowed MEP
Returns:

generateFileNameList

public static java.lang.String generateFileNameList(java.util.List<java.lang.String> names,
                                                    javax.xml.namespace.QName operation)
generates the XML representation of the file name list

Parameters:
names -
Returns:

generateMTOMListResponse

public static org.w3c.dom.Document generateMTOMListResponse(java.util.List<java.lang.String> names,
                                                            javax.xml.namespace.QName operation)
Generate a MTOM response for a list of files.

Parameters:
names -
operation -
Returns:

generateMTOMResponse

public static org.w3c.dom.Document generateMTOMResponse(java.lang.String names,
                                                        javax.xml.namespace.QName operation)
Generate a MTOM response for a single file.

Parameters:
names -
operation -
Returns:

setIOFaultOnExchange

public static void setIOFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
                                        java.lang.String ioMessage)
                                 throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

setMissingElementFaultOnExchange

public static void setMissingElementFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
                                                    java.lang.String missingElement)
                                             throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException


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