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

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

public class ContentTypeInfo
extends java.lang.Object

Class encapsulating the content type information for a given message.


Constructor Summary
ContentTypeInfo(java.lang.String propertyName, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
          Get the content type of the message.
 java.lang.String getPropertyName()
          Get the name of the message property from which the content type has been extracted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeInfo

public ContentTypeInfo(java.lang.String propertyName,
                       java.lang.String contentType)
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get the name of the message property from which the content type has been extracted.

Returns:
the property name or null if the content type was not determined by extracting it from a message property

getContentType

public java.lang.String getContentType()
Get the content type of the message.

Returns:
The content type of the message. The return value is never null.


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