|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.mail.WrappedMessage
public class WrappedMessage
Utility class for wrapping a message according to the NHIN Direct agent specification.
| Constructor Summary | |
|---|---|
WrappedMessage()
|
|
| Method Summary | |
|---|---|
static Message |
create(Message message,
String[] headersToCopy)
Wraps a messaging into a new message by creating a message wrapper, copying only desired headers into the wrapper, and pushing the entire original message (including headers) into the body of the wrapper. |
static Message |
create(String message,
String[] headersToCopy)
Wraps a messaging (represented in a raw string) into a new message by creating a message wrapper, copying only desired headers into the wrapper, and pushing the entire original message (including headers) into the body of the wrapper. |
static Message |
extract(Message message)
Extracts the wrapped message from the wrapper. |
static boolean |
isWrapped(Message message)
Determines if a message is wrapped. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedMessage()
| Method Detail |
|---|
public static Message create(Message message,
String[] headersToCopy)
throws javax.mail.MessagingException
message - The message to wrap.headersToCopy - The headers that should be copied from the original message into the wrapper.
javax.mail.MessagingException
public static Message create(String message,
String[] headersToCopy)
throws javax.mail.MessagingException
message - The message to wrap.headersToCopy - The headers that should be copied from the original message into the wrapper.
javax.mail.MessagingExceptionpublic static boolean isWrapped(Message message)
message - The message to check.
extract(Message)} operation.
public static Message extract(Message message)
throws javax.mail.MessagingException
message - The message wrapper.
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||