| Constructor and Description |
|---|
DefaultSmtpAgent(SmtpAgentSettings settings,
org.nhindirect.stagent.NHINDAgent agent)
Constructs an Smtp agent with settings and an instance of the security and trust agent.
|
DefaultSmtpAgent(SmtpAgentSettings settings,
org.nhindirect.stagent.NHINDAgent agent,
org.nhindirect.common.audit.Auditor auditor)
Constructs an Smtp agent with settings, an instance of the security and trust agent,
and an event auditor.
|
| Modifier and Type | Method and Description |
|---|---|
org.nhindirect.stagent.NHINDAgent |
getAgent()
Gets a references to the security and trust agent used by the SmtpAgent.
|
org.nhindirect.common.audit.Auditor |
getAuditor()
Gets the auditor used to log auditable events.
|
SmtpAgentSettings |
getSmtpAgentSettings()
Gets the configuration settings of the SmtpAgent.
|
boolean |
isOutgoing(org.nhindirect.stagent.MessageEnvelope envelope) |
MessageProcessResult |
processMessage(javax.mail.internet.MimeMessage message,
org.nhindirect.stagent.NHINDAddressCollection recipients,
org.nhindirect.stagent.NHINDAddress sender)
Processes an message from an SMTP stack.
|
void |
setAgent(org.nhindirect.stagent.NHINDAgent agent)
Sets the security and trust agent used by the SmtpAgent
|
void |
setAuditor(org.nhindirect.common.audit.Auditor auditor)
Sets the auditor used to log auditable events.
|
public DefaultSmtpAgent(SmtpAgentSettings settings, org.nhindirect.stagent.NHINDAgent agent)
settings - The SMTP agent configuration settings.agent - An instance of the security and trust agent.public DefaultSmtpAgent(SmtpAgentSettings settings, org.nhindirect.stagent.NHINDAgent agent, org.nhindirect.common.audit.Auditor auditor)
settings - The SMTP agent configuration settings.agent - An instance of the security and trust agent.auditor - The auditor used to log auditable events.public org.nhindirect.stagent.NHINDAgent getAgent()
public void setAgent(org.nhindirect.stagent.NHINDAgent agent)
agent - The security and trust agent used by the SmtpAgentpublic SmtpAgentSettings getSmtpAgentSettings()
getSmtpAgentSettings in interface SmtpAgentpublic void setAuditor(org.nhindirect.common.audit.Auditor auditor)
auditor - The auditor used to log auditable events.public org.nhindirect.common.audit.Auditor getAuditor()
auditor - The auditor used to log auditable events.public MessageProcessResult processMessage(javax.mail.internet.MimeMessage message, org.nhindirect.stagent.NHINDAddressCollection recipients, org.nhindirect.stagent.NHINDAddress sender)
processMessage in interface SmtpAgentmessage - The message in the SMTP envelope.recipients - The recipients of the message. The RCTP TO headers should be used over the message routing headers.sender - The send of the message. The MAIL FROM header should be used over the From: routing header in the message.public boolean isOutgoing(org.nhindirect.stagent.MessageEnvelope envelope)
Copyright © 2010–2021 NHIN Direct. All rights reserved.