org.apache.servicemix.components.util
Class MarshalerSupport

java.lang.Object
  extended by org.apache.servicemix.components.util.MarshalerSupport
Direct Known Subclasses:
DefaultFileMarshaler

public class MarshalerSupport
extends java.lang.Object

A useful base class for some kind of marshaler to and from JBI NormalizedMessage instances to some kind of underlying transport or protocol.

Version:
$Revision: 673769 $

Constructor Summary
MarshalerSupport()
           
 
Method Summary
protected  java.lang.String asString(java.lang.Object value)
          Converts the value to a String
 SourceTransformer getTransformer()
           
 void setTransformer(SourceTransformer transformer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshalerSupport

public MarshalerSupport()
Method Detail

asString

protected java.lang.String asString(java.lang.Object value)
Converts the value to a String

Parameters:
value - the value to be coerced into a string
Returns:
the value as a string or null if it cannot be converted

getTransformer

public SourceTransformer getTransformer()

setTransformer

public void setTransformer(SourceTransformer transformer)


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.