Class AbstractResponseHandler<T>
- java.lang.Object
-
- net.fortuna.ical4j.connector.dav.response.AbstractResponseHandler<T>
-
- All Implemented Interfaces:
org.apache.http.client.ResponseHandler<T>
- Direct Known Subclasses:
GetCalDavCollections
,GetCalendarData
,GetCalendarResource
,GetCardDavCollections
,GetCollections
,GetFreeBusyData
,GetPrincipals
,GetResourceProperties
,GetSupportedFeatures
,GetVCardData
,GetVCardResource
public abstract class AbstractResponseHandler<T> extends Object implements org.apache.http.client.ResponseHandler<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractResponseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStream
getContent(org.apache.http.HttpResponse response, MediaType mediaType)
protected <R> List<R>
getHeaderElements(org.apache.http.HttpResponse response, String name, Function<org.apache.http.HeaderElement,R> mapper)
protected <R> List<R>
getHeaders(org.apache.http.HttpResponse response, String name, Function<org.apache.http.Header,R> mapper)
protected org.apache.jackrabbit.webdav.MultiStatus
getMultiStatus(org.apache.http.HttpResponse response)
-
-
-
Method Detail
-
getContent
protected InputStream getContent(org.apache.http.HttpResponse response, MediaType mediaType) throws IOException
- Throws:
IOException
-
getHeaders
protected <R> List<R> getHeaders(org.apache.http.HttpResponse response, String name, Function<org.apache.http.Header,R> mapper)
-
getHeaderElements
protected <R> List<R> getHeaderElements(org.apache.http.HttpResponse response, String name, Function<org.apache.http.HeaderElement,R> mapper)
-
getMultiStatus
protected org.apache.jackrabbit.webdav.MultiStatus getMultiStatus(org.apache.http.HttpResponse response) throws org.apache.jackrabbit.webdav.DavException
- Throws:
org.apache.jackrabbit.webdav.DavException
-
-