public class CommonUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RFC2822_MESSAGEID_PATTERNSTR |
| Constructor and Description |
|---|
CommonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeStreams(Closeable... streams)
Close streams.
|
static com.ibm.b2b.comms.entities.exchangeprofile.ExchangeProfilePK |
fromString(String pkStr)
get ExchangeProfilePK object from string.
|
static Object |
getPropValueFromPropertyList(String propName,
List<com.ibm.b2b.apiint.messagedefinitions.messages.xml.dispatcher.PropertyType> list)
Gets the prop value from property list.
|
static Throwable |
getRootCause(Throwable throwable) |
static AS4VisibilityErrorDetail |
getVizErrorDetail(String key,
String param1)
creates and returns an Errordetail object
|
static Set<com.ibm.b2b.comms.entities.exchangeprofile.UserExitInfo> |
userExitsJaxbToUsableSet(List<com.ibm.b2b.apiint.messagedefinitions.messages.xml.exchange.commons.UserExitType> userExitsList,
String userExitPoint)
User exits jaxb to usable set.
|
static boolean |
validateRFC2822MessageID(String messageID,
boolean angleBracketIncluded)
Validate message id as per rfc 2822.
|
public static final String RFC2822_MESSAGEID_PATTERNSTR
public static Set<com.ibm.b2b.comms.entities.exchangeprofile.UserExitInfo> userExitsJaxbToUsableSet(List<com.ibm.b2b.apiint.messagedefinitions.messages.xml.exchange.commons.UserExitType> userExitsList, String userExitPoint)
userExitsList - the user exits listuserExitPoint - the user exit pointpublic static boolean validateRFC2822MessageID(String messageID, boolean angleBracketIncluded)
atext = ALPHA / DIGIT / ; Any character except controls,
"!" / "#" / ; SP, and specials.
"$" / "%" / ; Used for atoms
"&" / "'" /
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "{" /
"|" / "}" /
"~"
atom = [CFWS] 1*atext [CFWS]
dot-atom = [CFWS] dot-atom-text [CFWS]
dot-atom-text = 1*atext *("." 1*atext)
msg-id = [CFWS] "<" id-left "@" id-right ">" [CFWS]
id-left = dot-atom-text / no-fold-quote / obs-id-left
id-right = dot-atom-text / no-fold-literal / obs-id-right
messageID - the message idangleBracketIncluded - true if angle brackets surround the message ID.public static AS4VisibilityErrorDetail getVizErrorDetail(String key, String param1)
key - keyparam1 - parameter1AS4VisibilityErrorDetailpublic static void closeStreams(Closeable... streams)
streams - variable number of stream(s)public static Object getPropValueFromPropertyList(String propName, List<com.ibm.b2b.apiint.messagedefinitions.messages.xml.dispatcher.PropertyType> list)
propName - the prop name to get the value oflist - the property listpublic static com.ibm.b2b.comms.entities.exchangeprofile.ExchangeProfilePK fromString(String pkStr)
pkStr - stringIBM Multi-Enterprise Gateway Embedded Client Version 1.0. Licensed Materials - Property of IBM. (C) Copyright IBM Corporation and its licensors 2013. All Rights Reserved. IBM and the IBM logo are trademarks of IBM Corporation in the United States, other countries, or both. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. Other company, product or service names may be trademarks or service marks of others.