|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4ejb.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 org.w3c.dom.Document |
buildDOMDocument(java.io.Reader xmlReader)
return the DOM Document |
static javax.xml.transform.dom.DOMSource |
createDOMSource(java.io.Reader xmlReader)
creates a DOMSource from the xml text read from the reader. |
static javax.jbi.messaging.InOut |
createInOutMessageExchange(javax.xml.namespace.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 java.lang.String |
getComponentName()
|
static javax.jbi.messaging.DeliveryChannel |
getDeliveryChannel()
|
static java.lang.String |
getExceptionAsXmlText(java.lang.Exception ex)
may be used to set the exception as fault content. |
static java.lang.StringBuffer |
getExceptionStackTrace(java.lang.Exception ex)
converts the ex stracktrace to string. |
static java.util.logging.Logger |
getLogger()
|
static void |
logDebug(java.lang.Object logObj)
|
static void |
logError(java.lang.Object logObj)
|
static void |
logInfo(java.lang.String msg)
|
static void |
logVerbose(java.lang.String msg)
|
static void |
logWarning(java.lang.Object logObj)
|
static java.lang.StringBuffer |
readFromDOMSource(javax.xml.transform.dom.DOMSource domSource)
reads xml text from DOMSource to StringBuffer |
static java.lang.StringBuffer |
readFromInputSource(org.xml.sax.InputSource inSource)
reads the xml text from InputSource into a StringBuffer |
static java.lang.StringBuffer |
readFromSource(javax.xml.transform.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 java.util.logging.Logger getLogger()
public static void logInfo(java.lang.String msg)
public static void logVerbose(java.lang.String msg)
public static void logWarning(java.lang.Object logObj)
public static void logError(java.lang.Object logObj)
public static void logDebug(java.lang.Object logObj)
public static javax.jbi.component.ComponentContext getComponentContext()
public static javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
public static java.lang.String getComponentName()
public static javax.jbi.servicedesc.ServiceEndpoint findServiceEndpoint(ServiceDescriptor serviceDescriptor)
public static javax.jbi.messaging.InOut createInOutMessageExchange(javax.xml.namespace.QName operation, javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint) throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
public static org.w3c.dom.Document buildDOMDocument(java.io.Reader xmlReader) throws java.lang.Exception
xmlReader
- Reader
java.lang.Exception
- on parser exception or any other exceptionpublic static java.lang.StringBuffer readFromDOMSource(javax.xml.transform.dom.DOMSource domSource)
public static java.lang.StringBuffer readFromInputSource(org.xml.sax.InputSource inSource)
public static java.lang.StringBuffer readFromSource(javax.xml.transform.Source source)
public static javax.xml.transform.dom.DOMSource createDOMSource(java.io.Reader xmlReader)
public static java.lang.StringBuffer getExceptionStackTrace(java.lang.Exception ex)
public static java.lang.String getExceptionAsXmlText(java.lang.Exception ex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |