org.nhind.james.mailet
Class DirectXdMailet

java.lang.Object
  extended by org.apache.mailet.base.GenericMailet
      extended by org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet
          extended by org.nhind.james.mailet.DirectXdMailet
All Implemented Interfaces:
Mailet, MailetConfig

public class DirectXdMailet
extends org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet

An Apache James Mailet that converts clinical messages into IHE Cross-Enterprise Document Reliability (XDR) messages and transmits them to an XDR Document Recipient via IHE XDS.b Provide and Register transaction (ITI-41).


Field Summary
protected  org.nhindirect.gateway.smtp.NotificationProducer notificationProducer
           
protected static String RELIABLE_DELIVERY_OPTION
           
 
Fields inherited from class org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet
dsnCreator, txParser, txService
 
Constructor Summary
DirectXdMailet()
           
 
Method Summary
protected  String getConfigServiceUrl()
          Return the value of configServiceUrl.
 DocumentRepository getDocumentRepository()
          Get the value of documentRepository.
protected  com.google.inject.Provider<org.nhindirect.gateway.smtp.dsn.DSNCreator> getDSNProvider()
          
protected  String getEndpointUrl()
          Return the value of endpointUrl.
protected  org.nhindirect.xd.transform.MimeXdsTransformer getMimeXDSTransformer()
          Get the value of mimeXDSTransfomer.
protected  org.nhindirect.xd.routing.RoutingResolver getResolver()
          Get the value of resolver.
 void init()
           
 void service(Mail mail)
           
protected  void setConfigServiceUrl(String configServiceUrl)
          Set the value of configServiceUrl.
 void setDocumentRepository(DocumentRepository documentRepository)
          Set the value of documentRepository.
protected  void setEndpointUrl(String endpointUrl)
          Set the value of endpointUrl.
protected  void setMimeXDSTransformer(org.nhindirect.xd.transform.MimeXdsTransformer mimeXDSTransformer)
          Set the value of mimeXDSTransformer.
protected  void setResolver(org.nhindirect.xd.routing.RoutingResolver resolver)
          Set the value of resolver.
 
Methods inherited from class org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet
createDefaultTxServiceModules, createDSNGenerator, createTxServices, getInitModules, getMailRecipients, getMailSender, getSender, getTxToTrack, sendDSN, sendDSN
 
Methods inherited from class org.apache.mailet.base.GenericMailet
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELIABLE_DELIVERY_OPTION

protected static final String RELIABLE_DELIVERY_OPTION
See Also:
Constant Field Values

notificationProducer

protected org.nhindirect.gateway.smtp.NotificationProducer notificationProducer
Constructor Detail

DirectXdMailet

public DirectXdMailet()
Method Detail

service

public void service(Mail mail)
             throws javax.mail.MessagingException
Specified by:
service in interface Mailet
Specified by:
service in class GenericMailet
Throws:
javax.mail.MessagingException

init

public void init()
          throws javax.mail.MessagingException
Overrides:
init in class org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet
Throws:
javax.mail.MessagingException

getEndpointUrl

protected String getEndpointUrl()
Return the value of endpointUrl.

Returns:
the value of endpointUrl.

setEndpointUrl

protected void setEndpointUrl(String endpointUrl)
Set the value of endpointUrl.

Parameters:
endpointUrl - The value of endpointUrl.

getConfigServiceUrl

protected String getConfigServiceUrl()
Return the value of configServiceUrl.

Returns:
the value of configServiceUrl.

setConfigServiceUrl

protected void setConfigServiceUrl(String configServiceUrl)
Set the value of configServiceUrl.

Parameters:
configServiceUrl - The value of configServiceUrl.

setResolver

protected void setResolver(org.nhindirect.xd.routing.RoutingResolver resolver)
Set the value of resolver.

Parameters:
resolver - The value of resolver.

getResolver

protected org.nhindirect.xd.routing.RoutingResolver getResolver()
Get the value of resolver.

Returns:
the value of resolver.

setMimeXDSTransformer

protected void setMimeXDSTransformer(org.nhindirect.xd.transform.MimeXdsTransformer mimeXDSTransformer)
Set the value of mimeXDSTransformer.

Parameters:
mimeXDSTransformer - The value of mimeXDSTransformer.

getMimeXDSTransformer

protected org.nhindirect.xd.transform.MimeXdsTransformer getMimeXDSTransformer()
Get the value of mimeXDSTransfomer.

Returns:
the value of mimeXDSTransformer, or a new object if null.

setDocumentRepository

public void setDocumentRepository(DocumentRepository documentRepository)
Set the value of documentRepository.

Parameters:
documentRepository - The value of documentRepository.

getDocumentRepository

public DocumentRepository getDocumentRepository()
Get the value of documentRepository.

Returns:
the value of documentRepository, or a new object if null.

getDSNProvider

protected com.google.inject.Provider<org.nhindirect.gateway.smtp.dsn.DSNCreator> getDSNProvider()

Specified by:
getDSNProvider in class org.nhindirect.gateway.smtp.james.mailet.AbstractNotificationAwareMailet


Copyright © 2012. All Rights Reserved.