Ejemplo n.º 1
0
 /**
  * Converts the message implementation into a String representation
  *
  * @param encoding The encoding to use when transforming the message (if necessary). The parameter
  *     is used when converting from a byte array
  * @return String representation of the message payload
  * @throws Exception Implementation may throw an endpoint specific exception
  */
 public String getPayloadAsString(String encoding) throws Exception {
   if (encoding == null) {
     return adapter.getPayloadAsString();
   } else {
     return adapter.getPayloadAsString(encoding);
   }
 }
Ejemplo n.º 2
0
 /**
  * Converts the payload implementation into a String representation
  *
  * @return String representation of the payload
  * @throws Exception Implemetation may throw an endpoint specific exception
  */
 public String getPayloadAsString() throws Exception {
   return adapter.getPayloadAsString();
 }