public DataHandler put(String key, DataHandler value) { try { message.addOutboundAttachment(key, value); return value; } catch (Exception e) { //Not sure we can do anything else here throw new RuntimeException(e); } }
public void addAttachment(String name, DataHandler handler) { try { message.addOutboundAttachment(name, handler); } catch (Exception e) { throw new MuleRuntimeException(e); } }
public DataHandler put(String key, Object value, String contentType) { try { message.addOutboundAttachment(key, value, contentType); return get(key); } catch (Exception e) { //Not sure we can do anything else here throw new RuntimeException(e); } }
@Override public void processMatch(String matchedValue) { try { message.addOutboundAttachment(matchedValue,message.getInboundAttachment(matchedValue)); } catch (Exception e) { throw new MuleRuntimeException(e); } } });
@Override public DataHandler put(String key, DataHandler value) { DataHandler previousValue = get(key); try { message.addOutboundAttachment(key, value); } catch (Exception e) { throw new MuleRuntimeException(e); } return previousValue; }
message.addOutboundAttachment(expression, (DataHandler) object); } catch (Exception e) try message.addOutboundAttachment(attachmentName,object,contentType);
message.addOutboundAttachment(key,value,contentType);
message.addOutboundAttachment(dataSource.getName(), new DataHandler(dataSource));
message.addOutboundAttachment(attachmentName, inboundAttachment);