|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.jms.JMSUtils
public class JMSUtils
Constructor Summary | |
---|---|
JMSUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getContentType(MessageContext msgCtx)
Get the context type from the Axis MessageContext |
static java.lang.String |
getDestination(AxisService service)
Get the JMS destination used by this service |
static java.lang.String |
getDestination(java.lang.String url)
Return the destination name from the given URL |
static java.io.InputStream |
getInputStream(javax.jms.Message message)
Get an InputStream to the message |
static java.util.Hashtable |
getProperties(java.lang.String url)
Extract connection factory properties from a given URL |
static java.lang.String |
getProperty(javax.jms.Message message,
java.lang.String property)
Get a String property from the JMS message |
static org.apache.axiom.soap.SOAPEnvelope |
getSOAPEnvelope(javax.jms.Message message,
MessageContext msgContext,
java.io.InputStream in)
Return a SOAPEnvelope created from the given JMS Message and Axis MessageContext, and the InputStream into the message |
static boolean |
isJMSService(AxisService service)
Should this service be enabled on JMS transport? |
static void |
markServiceAsFaulty(java.lang.String serviceName,
java.lang.String msg,
AxisConfiguration axisCfg)
Marks the given service as faulty with the given comment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSUtils()
Method Detail |
---|
public static boolean isJMSService(AxisService service)
service
- the Axis service
public static java.lang.String getDestination(AxisService service)
service
- the Axis Service
public static java.util.Hashtable getProperties(java.lang.String url)
url
- a JMS URL of the form jms:/public static void markServiceAsFaulty(java.lang.String serviceName, java.lang.String msg, AxisConfiguration axisCfg)
serviceName
- service namemsg
- comment for being faultyaxisCfg
- configuration contextpublic static java.io.InputStream getInputStream(javax.jms.Message message)
message
- the JMS message
public static java.lang.String getProperty(javax.jms.Message message, java.lang.String property)
message
- JMS messageproperty
- property name
public static java.lang.String getContentType(MessageContext msgCtx)
msgCtx
- message context
public static java.lang.String getDestination(java.lang.String url)
url
- the URL
public static org.apache.axiom.soap.SOAPEnvelope getSOAPEnvelope(javax.jms.Message message, MessageContext msgContext, java.io.InputStream in) throws javax.xml.stream.XMLStreamException
message
- the JMS MessagemsgContext
- the Axis MessageContextin
- the InputStream into the message
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |