org.apache.abdera.protocol.client.util
Class MethodHelper
java.lang.Object
org.apache.abdera.protocol.client.util.MethodHelper
public class MethodHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodHelper
public MethodHelper()
getCacheableHeaders
public static java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getCacheableHeaders(ClientResponse response)
isCacheableHeader
public static boolean isCacheableHeader(java.lang.String header,
ClientResponse response)
isNoCacheOrPrivate
public static boolean isNoCacheOrPrivate(java.lang.String header,
ClientResponse response)
isHopByHop
public static boolean isHopByHop(java.lang.String header)
- We don't cache hop-by-hop headers
TODO: There may actually be other hop-by-hop headers we need to filter
out. They'll be listed in the Connection header. see Section 14.10
of RFC2616 (last paragraph)
createMethod
public static org.apache.commons.httpclient.HttpMethod createMethod(java.lang.String method,
java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options)
createDefaultRequestOptions
public static RequestOptions createDefaultRequestOptions()