org.nhindirect.stagent
Class OutgoingMessage

java.lang.Object
  extended by org.nhindirect.stagent.DefaultMessageEnvelope
      extended by org.nhindirect.stagent.OutgoingMessage
All Implemented Interfaces:
MessageEnvelope

public class OutgoingMessage
extends DefaultMessageEnvelope

Outgoing messages are specific types of NHINDMessage that need to been signed and encrypted.

The domain(s) bound to the provided agent is used to remove recipients that are not in the agent's domain(s).

Author:
Greg Meyer, Umesh Madan

Constructor Summary
OutgoingMessage(Message message)
          Create an outgoing message from a mime message.
OutgoingMessage(MessageEnvelope envelope)
          Create an outgoing message from a pre-eveloped message.
OutgoingMessage(Message message, NHINDAddressCollection recipients, NHINDAddress sender)
          Create an outgoing message from a mime message overriding the routing headers.
OutgoingMessage(String message)
          Create an outgoing message from a raw string.
OutgoingMessage(String message, NHINDAddressCollection recipients, NHINDAddress sender)
          Create an outgoing message from a raw string.
 
Method Summary
 
Methods inherited from class org.nhindirect.stagent.DefaultMessageEnvelope
ensureRecipientsCategorizedByDomain, getAgent, getDomainRecipients, getMessage, getOtherRecipients, getRecipients, getRejectedRecipients, getSender, hasDomainRecipients, hasOtherRecipients, hasRecipients, hasRejectedRecipients, serializeMessage, setAgent, setMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutgoingMessage

public OutgoingMessage(Message message)
Create an outgoing message from a mime message.

Parameters:
message - The message to be enveloped.

OutgoingMessage

public OutgoingMessage(Message message,
                       NHINDAddressCollection recipients,
                       NHINDAddress sender)
Create an outgoing message from a mime message overriding the routing headers.

Parameters:
message - The message to be enveloped.
recipients - The message recipients.
sender - The message sender.

OutgoingMessage

public OutgoingMessage(String message)
Create an outgoing message from a raw string.

Parameters:
message - The raw string representation of the message to be enveloped.

OutgoingMessage

public OutgoingMessage(String message,
                       NHINDAddressCollection recipients,
                       NHINDAddress sender)
Create an outgoing message from a raw string. overriding the routing headers.

Parameters:
message - The raw string representation of the message to be enveloped.
recipients - The message recipients.
sender - The message sender.

OutgoingMessage

public OutgoingMessage(MessageEnvelope envelope)
Create an outgoing message from a pre-eveloped message.

Parameters:
message - The raw string representation of the message to be enveloped.


Copyright © 2010-2014 NHIN Direct. All Rights Reserved.