public class AS4Utils extends Object
Constructor and Description |
---|
AS4Utils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.axiom.om.OMNode |
getOMNode(Marshaller marshaller,
Messaging messaging)
Create
OMNode object from Messaging object |
static boolean |
isSendErrorAsResponse(PMode pmode)
Determine if the error need to be sent as response to the sending MSH
|
static boolean |
reportErrorToProducer(PMode pmode)
Determine if the error need to be notified to the producer end
|
static void |
validateMessaging(Messaging messaging,
PModeRepository pmodeRepository)
Validate Messaging object to see whether it contains required fields
|
public static org.apache.axiom.om.OMNode getOMNode(Marshaller marshaller, Messaging messaging) throws IOException, XMLStreamException, PropertyException
OMNode
object from Messaging
objectmarshaller
- Marshaller
instance for Messaging
classmessaging
- Messaging
object to be converted to OMNode
Messaging
objectIOException
XMLStreamException
PropertyException
public static void validateMessaging(Messaging messaging, PModeRepository pmodeRepository) throws AS4Exception
messaging
- Messaging
objectAS4Exception
- with error message and error code for failed validationpublic static boolean reportErrorToProducer(PMode pmode)
pmode
- PMode
objectCopyright © 2018 WSO2. All rights reserved.