this.setUnmarshallClass(unmarshallClass);
}
public void marshal(Exchange exchange, Object body, OutputStream stream) throws Exception {
IBindingFactory bindingFactory = BindingDirectory.getFactory(body.getClass());
IMarshallingContext marshallingContext = bindingFactory.createMarshallingContext();
marshallingContext.marshalDocument(body, null, null, stream);
}
public Object unmarshal(Exchange exchange, InputStream stream) throws Exception {
ObjectHelper.notNull(getUnmarshallClass(), "unmarshallClass");