org.apache.abdera.protocol.client.util
Class MethodHelper

java.lang.Object
  extended by org.apache.abdera.protocol.client.util.MethodHelper

public class MethodHelper
extends Object


Nested Class Summary
static class MethodHelper.ExtensionMethod
           
static class MethodHelper.HopByHop
           
static class MethodHelper.Method
           
 
Constructor Summary
MethodHelper()
           
 
Method Summary
static RequestOptions createDefaultRequestOptions()
           
static org.apache.commons.httpclient.HttpMethod createMethod(String method, String uri, org.apache.commons.httpclient.methods.RequestEntity entity, RequestOptions options)
           
static Map<String,Object[]> getCacheableHeaders(ClientResponse response)
           
static boolean isCacheableHeader(String header, ClientResponse response)
           
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.
static boolean isNoCacheOrPrivate(String header, ClientResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodHelper

public MethodHelper()
Method Detail

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.