org.jasig.schedassist.impl.caldav
Interface HttpMethodInterceptor

All Known Implementing Classes:
BedeworkHttpMethodInterceptorImpl, NoopHttpMethodInterceptorImpl

public interface HttpMethodInterceptor

Different CalDAV servers may expect different information in the HTTP requests. This interface provides a mechanism for altering the HttpMethods created by the CaldavCalendarDataDaoImpl before they are sent to the CalDAV server.

Version:
$ Id: HttpMethodInterceptor.java $
Author:
Nicholas Blair

Method Summary
 org.apache.commons.httpclient.HttpMethod doWithMethod(org.apache.commons.httpclient.HttpMethod method, ICalendarAccount onBehalfOf)
          Implementations will receive the HttpMethod just before the HttpClient.executeMethod(HttpMethod) is called on it.
 

Method Detail

doWithMethod

org.apache.commons.httpclient.HttpMethod doWithMethod(org.apache.commons.httpclient.HttpMethod method,
                                                      ICalendarAccount onBehalfOf)
Implementations will receive the HttpMethod just before the HttpClient.executeMethod(HttpMethod) is called on it. Implementations are allowed to mutate the method as needed, but MUST never return null.

Parameters:
method -
onBehalfOf - the ICalendarAccount that matches the account the request will be on behalf of
Returns:
the CalDAV implementation-specific altered HttpMethod


Copyright © 2011 Jasig. All Rights Reserved.