org.jasig.schedassist.impl.caldav.bedework
Class BedeworkHttpMethodInterceptorImpl

java.lang.Object
  extended by 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

Field Summary
protected static org.apache.http.Header CLIENT_ID_HEADER
           
protected static String RUN_AS_HEADER
           
 
Constructor Summary
BedeworkHttpMethodInterceptorImpl()
           
 
Method Summary
 org.apache.http.HttpRequest doWithMethod(org.apache.http.HttpRequest request, ICalendarAccount onBehalfOf)
          Implementations will receive the HttpRequest just before the HttpClient#executeMethod(HttpRequest) is called on it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_AS_HEADER

protected static final String RUN_AS_HEADER
See Also:
Constant Field Values

CLIENT_ID_HEADER

protected static final org.apache.http.Header CLIENT_ID_HEADER
Constructor Detail

BedeworkHttpMethodInterceptorImpl

public BedeworkHttpMethodInterceptorImpl()
Method Detail

doWithMethod

public org.apache.http.HttpRequest doWithMethod(org.apache.http.HttpRequest request,
                                                ICalendarAccount onBehalfOf)
Description copied from interface: HttpMethodInterceptor
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.

Specified by:
doWithMethod in interface HttpMethodInterceptor
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.