|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
org.jasig.portlet.calendar.adapter.exchange.ExchangeHttpWebServiceMessageSender
public class ExchangeHttpWebServiceMessageSender
ExchangeHttpWebServiceMessageSender is a subclass of AbstractHttpWebServiceMessageSender designed to connect to an Exchange web service protected by user-specific basic authentication. The default Spring implementations of Http-based message senders only allow for performing basic authentication with shared credentials. This implementation is dependent on the user credentials object existing in a ThreadLocal managed by a Spring RequestContextHolder.
| Field Summary | |
|---|---|
protected static String |
EXCHANGE_CLIENT_ATTRIBUTE
|
protected static String |
EXCHANGE_CREDENTIALS_ATTRIBUTE
|
| Fields inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender |
|---|
logger |
| Constructor Summary | |
|---|---|
ExchangeHttpWebServiceMessageSender()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
org.springframework.ws.transport.WebServiceConnection |
createConnection(URI uri)
|
void |
destroy()
|
protected org.apache.commons.httpclient.HttpClient |
getClient()
Return an HttpClient instance configured with authentication credentials for the current user. |
protected org.apache.commons.httpclient.Credentials |
getCredentials()
Get the credentials to use with the HttpClient. |
void |
setConnectionTimeout(int connectionTimeout)
Set the connection timeout. |
void |
setMaxConnections(int maxConnections)
Set the max connections for the overall client. |
void |
setReadTimeout(int readTimeout)
Set the read timeout. |
| Methods inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender |
|---|
isAcceptGzipEncoding, setAcceptGzipEncoding, supports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String EXCHANGE_CREDENTIALS_ATTRIBUTE
protected static final String EXCHANGE_CLIENT_ATTRIBUTE
| Constructor Detail |
|---|
public ExchangeHttpWebServiceMessageSender()
| Method Detail |
|---|
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - public void setReadTimeout(int readTimeout)
readTimeout - public void setMaxConnections(int maxConnections)
maxConnections -
public org.springframework.ws.transport.WebServiceConnection createConnection(URI uri)
throws IOException
createConnection in interface org.springframework.ws.transport.WebServiceMessageSenderIOExceptionprotected org.apache.commons.httpclient.HttpClient getClient()
protected org.apache.commons.httpclient.Credentials getCredentials()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||