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 HttpRequests
created by the CaldavCalendarDataDaoImpl before they are sent to the CalDAV
server.
- Version:
- $ Id: HttpMethodInterceptor.java $
- Author:
- Nicholas Blair
|
Method Summary |
org.apache.http.HttpRequest |
doWithMethod(org.apache.http.HttpRequest method,
ICalendarAccount onBehalfOf)
Implementations will receive the HttpRequest just before the
HttpClient#executeMethod(HttpRequest) is called on it. |
doWithMethod
org.apache.http.HttpRequest doWithMethod(org.apache.http.HttpRequest method,
ICalendarAccount onBehalfOf)
- Implementations will receive the
HttpRequest just before the
HttpClient#executeMethod(HttpRequest) 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
HttpRequest
Copyright © 2012 Jasig. All Rights Reserved.