@Immutable public interface Envelope
The best way is to use Envelope.Mime
, but
you can easily create your own implementation of it.
It is recommended to always wrap your envelope into
Envelope.Safe
.
Modifier and Type | Interface and Description |
---|---|
static class |
Envelope.Constant
Envelope that always returns the same message (within one hour).
|
static class |
Envelope.Draft
Envelope that adds DRAFT flag to the message.
|
static class |
Envelope.Mime
Default envelope.
|
static class |
Envelope.Safe
Safe envelope that adds missing parts to the message.
|
static class |
Envelope.Strict
Strict envelope that fails if message is not valid.
|
static final Envelope EMPTY
Message unwrap() throws IOException
IOException
- If failsCopyright © 2012–2017 jcabi.com. All rights reserved.