1 10 11 package org.mule.providers.jdbc; 12 13 import org.mule.providers.AbstractMessageAdapter; 14 15 public class JdbcMessageAdapter extends AbstractMessageAdapter 16 { 17 20 private static final long serialVersionUID = 6770314376258549559L; 21 22 private final Object payload; 23 24 public JdbcMessageAdapter(Object obj) 25 { 26 this.payload = obj; 27 } 28 29 37 public String getPayloadAsString(String encoding) throws Exception 38 { 39 return payload.toString(); 40 } 41 42 47 public byte[] getPayloadAsBytes() throws Exception 48 { 49 return payload.toString().getBytes(); 50 } 51 52 57 public Object getPayload() 58 { 59 return payload; 60 } 61 62 } 63 | Popular Tags |