org.apache.axis2.transport.jms.ctype
Interface ContentTypeRule

All Known Implementing Classes:
DefaultRule, MessageTypeRule, PropertyRule

public interface ContentTypeRule

Interface implemented by content type rules.


Method Summary
 ContentTypeInfo getContentType(javax.jms.Message message)
          Attempt to determine the content type of the given JMS message.
 java.lang.String getExpectedContentTypeProperty()
          Get the name of the message property used to extract the content type from, if applicable.
 

Method Detail

getContentType

ContentTypeInfo getContentType(javax.jms.Message message)
                               throws javax.jms.JMSException
Attempt to determine the content type of the given JMS message.

Parameters:
message - the message
Returns:
If the rule matches, the return value encapsulates the content type of the message and the message property name from which is was extracted (if applicable). If the rule doesn't match, the method returns null.
Throws:
javax.jms.JMSException

getExpectedContentTypeProperty

java.lang.String getExpectedContentTypeProperty()
Get the name of the message property used to extract the content type from, if applicable.

Returns:
the property name or null if not applicable


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.