org.jboss.soa.esb.listeners.message.mime
Class MimeDecoder.Factory

java.lang.Object
  extended by org.jboss.soa.esb.listeners.message.mime.MimeDecoder.Factory
Enclosing interface:
MimeDecoder

public static class MimeDecoder.Factory
extends java.lang.Object

Factory class.


Field Summary
static java.lang.String DECODERS_LST_RESOURCE
           
static java.lang.String MIME_DECODER
           
static java.lang.String MIME_TYPE
           
 
Constructor Summary
MimeDecoder.Factory()
           
 
Method Summary
static MimeDecoder getInstanceByClassName(java.lang.String className)
          Get a MimeDecoder instance by class name.
static MimeDecoder getInstanceByConfigTree(ConfigTree config)
          Get a MimeDecoder instance by ConfigTree.
static MimeDecoder getInstanceByType(java.lang.String mimeType)
          Get a MimeDecoder instance by mime type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE

public static final java.lang.String MIME_TYPE
See Also:
Constant Field Values

MIME_DECODER

public static final java.lang.String MIME_DECODER
See Also:
Constant Field Values

DECODERS_LST_RESOURCE

public static final java.lang.String DECODERS_LST_RESOURCE
See Also:
Constant Field Values
Constructor Detail

MimeDecoder.Factory

public MimeDecoder.Factory()
Method Detail

getInstanceByType

public static MimeDecoder getInstanceByType(java.lang.String mimeType)
                                     throws ConfigurationException
Get a MimeDecoder instance by mime type.

Parameters:
mimeType - The mime type.
Returns:
The MimeDecoder for that mime type.
Throws:
ConfigurationException - Error creating MimeDecoder instance.

getInstanceByClassName

public static MimeDecoder getInstanceByClassName(java.lang.String className)
                                          throws ConfigurationException
Get a MimeDecoder instance by class name.

Parameters:
className - The MimeDecoder class name.
Returns:
The MimeDecoder instance.
Throws:
ConfigurationException - Error creating MimeDecoder instance.

getInstanceByConfigTree

public static MimeDecoder getInstanceByConfigTree(ConfigTree config)
                                           throws ConfigurationException
Get a MimeDecoder instance by ConfigTree.

Parameters:
config - The ConfigTree instance.
Returns:
The MimeDecoder instance.
Throws:
ConfigurationException - Error creating MimeDecoder instance.