org.mule.transformer
Class TransformerUtils
java.lang.Object
org.mule.transformer.TransformerUtils
public class TransformerUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMA
public static final String COMMA
- See Also:
- Constant Field Values
TransformerUtils
public TransformerUtils()
initialiseAllTransformers
public static void initialiseAllTransformers(List<Transformer> transformers)
throws InitialisationException
- Throws:
InitialisationException
toString
public static String toString(List<Transformer> transformers)
firstOrNull
public static Transformer firstOrNull(List<Transformer> transformers)
isSourceTypeSupportedByFirst
public static boolean isSourceTypeSupportedByFirst(List<Transformer> transformers,
Class clazz)
getTransformersFromSource
protected static List<Transformer> getTransformersFromSource(TransformerUtils.TransformerSource source)
getDefaultInboundTransformers
public static List<Transformer> getDefaultInboundTransformers(TransportServiceDescriptor serviceDescriptor,
ImmutableEndpoint endpoint)
getDefaultResponseTransformers
public static List<Transformer> getDefaultResponseTransformers(TransportServiceDescriptor serviceDescriptor,
ImmutableEndpoint endpoint)
getDefaultOutboundTransformers
public static List<Transformer> getDefaultOutboundTransformers(TransportServiceDescriptor serviceDescriptor,
ImmutableEndpoint endpoint)
getTransformers
public static List<Transformer> getTransformers(String names,
MuleContext muleContext)
throws DefaultMuleException
- Builds a list of Transformers.
- Parameters:
names
- - a list of transformers separated by commandsmuleContext
- the current muleContext. This is used to look up transformers in the registry
- Returns:
- a list (possibly empty) of transformers or
- Throws:
DefaultMuleException
- if any of the transformers cannot be found
checkTransformerReturnClass
public static void checkTransformerReturnClass(Transformer transformer,
Object value)
throws TransformerException
- Checks whether a given value is a valid output for a transformer.
- Parameters:
transformer
- the transformer used to validatevalue
- the output value
- Throws:
TransformerException
- if the out[ut value is of a unexpected type.
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.