org.apache.axis2.transport.jms.ctype
Class ContentTypeRuleSet

java.lang.Object
  extended by org.apache.axis2.transport.jms.ctype.ContentTypeRuleSet

public class ContentTypeRuleSet
extends java.lang.Object

A set of content type rules.


Constructor Summary
ContentTypeRuleSet()
           
 
Method Summary
 void addRule(ContentTypeRule rule)
          Add a content type rule to this set.
 ContentTypeInfo getContentTypeInfo(javax.jms.Message message)
          Determine the content type of the given message.
 java.lang.String getDefaultContentTypeProperty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeRuleSet

public ContentTypeRuleSet()
Method Detail

addRule

public void addRule(ContentTypeRule rule)
Add a content type rule to this set.

Parameters:
rule - the rule to add

getContentTypeInfo

public ContentTypeInfo getContentTypeInfo(javax.jms.Message message)
                                   throws javax.jms.JMSException
Determine the content type of the given message. This method will try the registered rules in turn until the first rule matches.

Parameters:
message - the message
Returns:
the content type information for the message or null if none of the rules matches
Throws:
javax.jms.JMSException

getDefaultContentTypeProperty

public java.lang.String getDefaultContentTypeProperty()


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