public class MethodHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodHelper.ExtensionMethod |
static class |
MethodHelper.HopByHop |
static class |
MethodHelper.Method |
| Constructor and Description |
|---|
MethodHelper() |
| Modifier and Type | Method and Description |
|---|---|
static RequestOptions |
createDefaultRequestOptions() |
static org.apache.commons.httpclient.HttpMethod |
createMethod(java.lang.String method,
java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options) |
static java.util.Map<java.lang.String,java.lang.Object[]> |
getCacheableHeaders(ClientResponse response) |
static boolean |
isCacheableHeader(java.lang.String header,
ClientResponse response) |
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.
|
static boolean |
isNoCacheOrPrivate(java.lang.String header,
ClientResponse response) |
public static java.util.Map<java.lang.String,java.lang.Object[]> getCacheableHeaders(ClientResponse response)
public static boolean isCacheableHeader(java.lang.String header,
ClientResponse response)
public static boolean isNoCacheOrPrivate(java.lang.String header,
ClientResponse response)
public static boolean isHopByHop(java.lang.String header)
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)
public static RequestOptions createDefaultRequestOptions()
Copyright © 2010 - 2020 Adobe. All Rights Reserved