org.jasig.schedassist.impl.caldav.bedework
Class BedeworkHttpMethodInterceptorImpl
java.lang.Object
org.jasig.schedassist.impl.caldav.bedework.BedeworkHttpMethodInterceptorImpl
- All Implemented Interfaces:
- HttpMethodInterceptor
public class BedeworkHttpMethodInterceptorImpl
- extends Object
- implements HttpMethodInterceptor
Bedework expects each request include a Request Header with the name RUN_AS_HEADER
and the value set to the username of the ICalendarAccount the request is being sent on behalf of.
- Version:
- $ Id: BedeworkHttpMethodInterceptorImpl.java $
- Author:
- Nicholas Blair
|
Method Summary |
org.apache.commons.httpclient.HttpMethod |
doWithMethod(org.apache.commons.httpclient.HttpMethod method,
ICalendarAccount calendarAccount)
Implementations will receive the HttpMethod just before the
HttpClient.executeMethod(HttpMethod) is called on it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RUN_AS_HEADER
protected static final String RUN_AS_HEADER
- See Also:
- Constant Field Values
CLIENT_ID_HEADER
protected static final org.apache.commons.httpclient.Header CLIENT_ID_HEADER
BedeworkHttpMethodInterceptorImpl
public BedeworkHttpMethodInterceptorImpl()
doWithMethod
public org.apache.commons.httpclient.HttpMethod doWithMethod(org.apache.commons.httpclient.HttpMethod method,
ICalendarAccount calendarAccount)
- Description copied from interface:
HttpMethodInterceptor
- 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.
- Specified by:
doWithMethod in interface HttpMethodInterceptor
calendarAccount - 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.