|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.sftp.SFTPUtil
public class SFTPUtil
This class intends to provide some useful methods like a message exchange fault setter.
| Constructor Summary | |
|---|---|
SFTPUtil()
|
|
| Method Summary | |
|---|---|
static void |
addRootElement(org.w3c.dom.Document document,
javax.xml.namespace.QName rootElement)
Add a root element to the given document. |
static boolean |
checkMEP(org.ow2.petals.component.framework.api.message.Exchange exchange,
boolean isInOnly,
boolean isRobustInOnly,
boolean isInOptionalOut,
boolean isInOut)
Checks if the MEP of the given message exchange is valid against the given configuration. |
static java.lang.String |
generateFileNameList(java.util.List<java.lang.String> names,
javax.xml.namespace.QName operation)
Generates an XML payload from an operation name an a list of filenames. |
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 |
getValidMepMessageForOperation(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 |
setConfigurationFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.lang.String configurationError)
Sets a ConfigurationFault on the given message exchange. |
static void |
setIOFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.lang.String ioMessage)
Sets an IOFault on the given message exchange. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SFTPUtil()
| Method Detail |
|---|
public static java.lang.String generateFileNameList(java.util.List<java.lang.String> names,
javax.xml.namespace.QName operation)
names - filenames which will be contained in the XML payloadoperation - the operation which requested to build a filelist
public static org.w3c.dom.Document generateMTOMListResponse(java.util.List<java.lang.String> names,
javax.xml.namespace.QName operation)
names - operation -
public static org.w3c.dom.Document generateMTOMResponse(java.lang.String names,
javax.xml.namespace.QName operation)
names - operation -
public static void setIOFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.lang.String ioMessage)
throws javax.jbi.messaging.MessagingException
exchange - ioMessage -
javax.jbi.messaging.MessagingException
public static void setConfigurationFaultOnExchange(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.lang.String configurationError)
throws javax.jbi.messaging.MessagingException
exchange - configurationError -
javax.jbi.messaging.MessagingException
public static final boolean checkMEP(org.ow2.petals.component.framework.api.message.Exchange exchange,
boolean isInOnly,
boolean isRobustInOnly,
boolean isInOptionalOut,
boolean isInOut)
exchange - a message exchangeisInOnly - if the InOnly MEP is supportedisRobustInOnly - if the RobustInOnly MEP is supportedisInOptionalOut - if the InOptionalOut MEP is supportedisInOut - if the InOut MEP is supported
public static final void addRootElement(org.w3c.dom.Document document,
javax.xml.namespace.QName rootElement)
document - rootElement -
public static java.lang.String getValidMepMessageForOperation(java.lang.String operation,
org.ow2.petals.component.framework.api.Message.MEPConstants... mep)
operation - mep -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||