org.apache.abdera.protocol.client.util
Class MethodHelper
java.lang.Object
org.apache.abdera.protocol.client.util.MethodHelper
public class MethodHelper
- extends 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 Map<String,Object[]> getCacheableHeaders(ClientResponse response)
isCacheableHeader
public static boolean isCacheableHeader(String header,
ClientResponse response)
isNoCacheOrPrivate
public static boolean isNoCacheOrPrivate(String header,
ClientResponse response)
isHopByHop
public static boolean isHopByHop(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(String method,
String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options)
createDefaultRequestOptions
public static RequestOptions createDefaultRequestOptions()
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.