@Test public void testAddAttachment() throws Exception { _message.addAttachment("attach1", new DummyDS("attach1", "text/xml")); Assert.assertNotNull(_message.getAttachment("attach1")); }
@Override public DefaultMessage addAttachment(final String name, final DataSource attachment) { _attachments.put(name, attachment); return this; }
DefaultMessage implements Message { @Override public DefaultMessage addAttachment(final String name, final DataSource attachment) { _attachments.put(name, attachment); return this; } }
DefaultMessage implements Message { @Override public DefaultMessage addAttachment(final String name, final DataSource attachment) { _attachments.put(name, attachment); return this; } DefaultMessage(); }
DefaultMessage implements Message { @Override public DefaultMessage addAttachment(final String name, final DataSource attachment) { _attachments.put(name, attachment); return this; } DefaultMessage(); DefaultMessage setTransformerRegistry(TransformerRegistry transformerRegistry); @Override DefaultMessage addAttachment(final String name, final DataSource attachment); @Override DataSource getAttachment(final String name); @Override void removeAttachment(final String name); @Override Map<String, DataSource> getAttachmentMap(); @Override Object getContent(); @Override Context getContext(); @Override T getContent(final Class<T> type); @Override DefaultMessage setContent(final Object content); @Override Message copy(); boolean isSent(); void send(); }
DefaultMessage implements Message { @Override public DefaultMessage addAttachment(final String name, final DataSource attachment) { _attachments.put(name, attachment); return this; } DefaultMessage(); DefaultMessage setTransformerRegistry(TransformerRegistry transformerRegistry); @Override DefaultMessage addAttachment(final String name, final DataSource attachment); @Override DataSource getAttachment(final String name); @Override void removeAttachment(final String name); @Override Map<String, DataSource> getAttachmentMap(); @Override Object getContent(); @Override Context getContext(); @Override T getContent(final Class<T> type); @Override DefaultMessage setContent(final Object content); @Override Message copy(); boolean isSent(); void send();  }