|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.jbi.component.runtime.RuntimeHelper
public final class RuntimeHelper
Helper class that have easy accessors for the common functions in the component runtime.
Constructor Summary | |
---|---|
RuntimeHelper()
|
Method Summary | |
---|---|
static Document |
buildDOMDocument(Reader xmlReader)
return the DOM Document |
static DOMSource |
createDOMSource(Reader xmlReader)
creates a DOMSource from the xml text read from the reader. |
static javax.jbi.messaging.InOut |
createInOutMessageExchange(QName operation,
javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
this method creates a InOutMessageExchange Object and sets the required data on the MessageExchange object including the create and set the Normalized message object to hold the input message on the MessageExchange object. |
static javax.jbi.servicedesc.ServiceEndpoint |
findServiceEndpoint(ServiceDescriptor serviceDescriptor)
helper method to find the active ServiceEndpiont for the service decribed with the serviceDescriptor. |
static javax.jbi.component.ComponentContext |
getComponentContext()
|
static String |
getComponentName()
|
static javax.jbi.messaging.DeliveryChannel |
getDeliveryChannel()
|
static String |
getExceptionAsXmlText(Exception ex)
may be used to set the exception as fault content. |
static StringBuffer |
getExceptionStackTrace(Exception ex)
converts the ex stracktrace to string. |
static Logger |
getLogger()
|
static void |
logDebug(Object logObj)
|
static void |
logError(Object logObj)
|
static void |
logInfo(String msg)
|
static void |
logVerbose(String msg)
|
static void |
logWarning(Object logObj)
|
static StringBuffer |
readFromDOMSource(DOMSource domSource)
reads xml text from DOMSource to StringBuffer |
static StringBuffer |
readFromInputSource(InputSource inSource)
reads the xml text from InputSource into a StringBuffer |
static StringBuffer |
readFromSource(Source source)
reads xml from from DOM, SAX or Stream Source into a string buffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeHelper()
Method Detail |
---|
public static Logger getLogger()
public static void logInfo(String msg)
public static void logVerbose(String msg)
public static void logWarning(Object logObj)
public static void logError(Object logObj)
public static void logDebug(Object logObj)
public static javax.jbi.component.ComponentContext getComponentContext()
public static javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
public static String getComponentName()
public static javax.jbi.servicedesc.ServiceEndpoint findServiceEndpoint(ServiceDescriptor serviceDescriptor)
public static javax.jbi.messaging.InOut createInOutMessageExchange(QName operation, javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint) throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
public static Document buildDOMDocument(Reader xmlReader) throws Exception
xmlReader
- Reader
Exception
- on parser exception or any other exceptionpublic static StringBuffer readFromDOMSource(DOMSource domSource)
public static StringBuffer readFromInputSource(InputSource inSource)
public static StringBuffer readFromSource(Source source)
public static DOMSource createDOMSource(Reader xmlReader)
public static StringBuffer getExceptionStackTrace(Exception ex)
public static String getExceptionAsXmlText(Exception ex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |