org.jasig.portlet.emailpreview.dao.exchange
Class ExchangeAutoDiscoverDaoImpl

java.lang.Object
  extended by org.jasig.portlet.emailpreview.dao.exchange.ExchangeAutoDiscoverDaoImpl

public class ExchangeAutoDiscoverDaoImpl
extends Object

Data accessor that uses Exchange Web Services's autodiscovery process. See http://msdn.microsoft.com/en-us/library/exchange/jj900169%28v=exchg.150%29.aspx (SOAP, spec on steps for autodiscover), Also see: http://msdn.microsoft.com/en-us/library/exchange/dd877090%28v=exchg.150%29.aspx http://msdn.microsoft.com/en-us/library/exchange/gg591268%28v=exchg.140%29.aspx (Exchange Online), http://msdn.microsoft.com/en-us/library/ee332364.aspx (this is for the Plain-old XML approach, not implemented). The current implementation: - Supports only the SOAP protocol, not the Plain-old XML approach - Does not use the Active Directory Service Connection Point (SCP) strategy to lookup Autodiscover URLs - Does not look up records in DNS - The servername to first contact is configured in the portlet preferences.

Author:
James Wennmacher, jwennmacher@unicon.net

Field Summary
protected static String AUTODISCOVER_RESPONSE_SCHEMA
           
protected static String AUTODISCOVER_SCHEMA
           
protected static String GET_USER_SETTINGS_ACTION
           
protected static QName REQUEST_SERVER_VERSION_QNAME
           
protected static String SOAP_ACTION_BASE
           
protected static QName SOAP_ACTION_HEADER_QNAME
           
 
Constructor Summary
ExchangeAutoDiscoverDaoImpl()
           
 
Method Summary
 String getEndpointUri(MailStoreConfiguration config)
          Gets the endpoint URI for EWS mailbox operations
 void setAutoDiscoverURIs(List<String> autoDiscoverURIs)
           
 void setEwsEndpointUriCache(net.sf.ehcache.Cache ewsEndpointUriCache)
           
 void setEwsEndpointUriCacheKeyGenerator(IEWSEndpoingUriCacheKeyGenerator ewsEndpointUriCacheKeyGenerator)
           
 void setEWSServerURI(String EWSServerURI)
           
 void setMarshaller(org.springframework.oxm.Marshaller marshaller)
           
 void setWebServiceOperations(org.springframework.ws.client.core.WebServiceOperations webServiceOperations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTODISCOVER_SCHEMA

protected static final String AUTODISCOVER_SCHEMA
See Also:
Constant Field Values

AUTODISCOVER_RESPONSE_SCHEMA

protected static final String AUTODISCOVER_RESPONSE_SCHEMA
See Also:
Constant Field Values

REQUEST_SERVER_VERSION_QNAME

protected static final QName REQUEST_SERVER_VERSION_QNAME

SOAP_ACTION_HEADER_QNAME

protected static final QName SOAP_ACTION_HEADER_QNAME

SOAP_ACTION_BASE

protected static final String SOAP_ACTION_BASE
See Also:
Constant Field Values

GET_USER_SETTINGS_ACTION

protected static final String GET_USER_SETTINGS_ACTION
See Also:
Constant Field Values
Constructor Detail

ExchangeAutoDiscoverDaoImpl

public ExchangeAutoDiscoverDaoImpl()
Method Detail

setWebServiceOperations

public void setWebServiceOperations(org.springframework.ws.client.core.WebServiceOperations webServiceOperations)

setEwsEndpointUriCache

public void setEwsEndpointUriCache(net.sf.ehcache.Cache ewsEndpointUriCache)

setEwsEndpointUriCacheKeyGenerator

public void setEwsEndpointUriCacheKeyGenerator(IEWSEndpoingUriCacheKeyGenerator ewsEndpointUriCacheKeyGenerator)

setAutoDiscoverURIs

public void setAutoDiscoverURIs(List<String> autoDiscoverURIs)

setEWSServerURI

public void setEWSServerURI(String EWSServerURI)

setMarshaller

public void setMarshaller(org.springframework.oxm.Marshaller marshaller)

getEndpointUri

public String getEndpointUri(MailStoreConfiguration config)
Gets the endpoint URI for EWS mailbox operations

Parameters:
config - mailbox config
Returns:
EWS endpoint URI


Copyright © 2013 Jasig. All Rights Reserved.