AddressedEnvelope implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final M | |
| private final A | |
| private final A |
| Access | Constructor and Description |
|---|---|
| public | DefaultAddressedEnvelope(M message, A recipient, A sender)
Creates a new instance with the specified |
| public | DefaultAddressedEnvelope(M message, A recipient)
Creates a new instance with the specified |
| Modifier and Type | Method and Description |
|---|---|
| public M | content()
Implements io. |
| public A | recipient()
Implements io. |
| public A | sender()
Implements io. |
| public String |
| message | back to summary |
|---|---|
| private final M message | |
| recipient | back to summary |
|---|---|
| private final A recipient | |
| sender | back to summary |
|---|---|
| private final A sender | |
| DefaultAddressedEnvelope | back to summary |
|---|---|
| public DefaultAddressedEnvelope(M message, A recipient, A sender) Creates a new instance with the specified | |
| DefaultAddressedEnvelope | back to summary |
|---|---|
| public DefaultAddressedEnvelope(M message, A recipient) Creates a new instance with the specified | |
| content | back to summary |
|---|---|
| public M content() Implements io. Doc from io. Returns the message wrapped by this envelope message.
| |
| recipient | back to summary |
|---|---|
| public A recipient() Implements io. Doc from io. Returns the address of the recipient of this message.
| |
| sender | back to summary |
|---|---|
| public A sender() Implements io. Doc from io. Returns the address of the sender of this message.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |