|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.DefaultMessageEnvelope
public class DefaultMessageEnvelope
A wrapper around a MimeMessage that categorizes routing headers such as trusted and non trusted recipients.
| Constructor Summary | |
|---|---|
DefaultMessageEnvelope(Message message)
Constructs an envelope from a message. |
|
DefaultMessageEnvelope(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
Constructs an envelope from a message, a list of recipients, and a sender. |
|
DefaultMessageEnvelope(java.lang.String rawMessage)
Constructs an envelope from a message represented by a raw string.. |
|
DefaultMessageEnvelope(java.lang.String rawMessage,
NHINDAddressCollection recipients,
NHINDAddress sender)
Constructs an envelope from a message represented as a raw string, a list of recipients, and a sender. |
|
| Method Summary | |
|---|---|
void |
ensureRecipientsCategorizedByDomain(java.util.Collection<java.lang.String> domains)
|
NHINDAgent |
getAgent()
Gets the agent associated with the message. |
NHINDAddressCollection |
getDomainRecipients()
Gets a list of recipients in the message that are part of the agent's domain. |
Message |
getMessage()
Gets the mime message wrapped in the envelope. |
java.util.Collection<NHINDAddress> |
getOtherRecipients()
Gets a list of recipients in the message that are not part of the agent's domain. |
NHINDAddressCollection |
getRecipients()
The collection of message recipients. |
NHINDAddressCollection |
getRejectedRecipients()
Gets a list of recipients in the message that are not trusted by the address. |
NHINDAddress |
getSender()
Gets the sender of the message. |
boolean |
hasDomainRecipients()
Indicates if the message has recipients that are in the agent's domain. |
boolean |
hasOtherRecipients()
Indicates if the message has recipients that are not in the agent's domain. |
boolean |
hasRecipients()
Indicates if the message has any recipients. |
boolean |
hasRejectedRecipients()
Indicates if the message has recipients that are not trusted by the address. |
java.lang.String |
serializeMessage()
Serializes the wrapped message to a raw string representation. |
void |
setAgent(NHINDAgent agent)
Associates the security and trust agent with the message. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageEnvelope(Message message)
message - The mime message.public DefaultMessageEnvelope(java.lang.String rawMessage)
rawMessage - The mime message.
public DefaultMessageEnvelope(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
message - The mime message.recipients - A collection of addresses that denote the recipients of the message.sender - The original sender of the message.
public DefaultMessageEnvelope(java.lang.String rawMessage,
NHINDAddressCollection recipients,
NHINDAddress sender)
message - The incoming message.recipients - A collection of addresses that denote the recipients of the message.sender - The original sender of the message.| Method Detail |
|---|
public NHINDAgent getAgent()
getAgent in interface MessageEnvelopepublic void setAgent(NHINDAgent agent)
agent - The security and trust agent.public Message getMessage()
getMessage in interface MessageEnvelopepublic NHINDAddress getSender()
getSender in interface MessageEnvelopepublic NHINDAddressCollection getRecipients()
getRecipients in interface MessageEnvelopepublic boolean hasRecipients()
hasRecipients in interface MessageEnvelopepublic NHINDAddressCollection getRejectedRecipients()
getRejectedRecipients in interface MessageEnvelopepublic boolean hasRejectedRecipients()
hasRejectedRecipients in interface MessageEnvelopepublic NHINDAddressCollection getDomainRecipients()
getDomainRecipients in interface MessageEnvelopepublic boolean hasDomainRecipients()
hasDomainRecipients in interface MessageEnvelopepublic java.util.Collection<NHINDAddress> getOtherRecipients()
getOtherRecipients in interface MessageEnvelopepublic boolean hasOtherRecipients()
hasOtherRecipients in interface MessageEnvelopepublic java.lang.String serializeMessage()
serializeMessage in interface MessageEnvelopepublic void ensureRecipientsCategorizedByDomain(java.util.Collection<java.lang.String> domains)
ensureRecipientsCategorizedByDomain in interface MessageEnvelope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||