} else if ("no-cache".equals(directiveName)) { cacheControl.setNoCache(true); readFieldNames(cacheControl.getNoCacheFields(), reader); } else if ("no-store".equals(directiveName)) { cacheControl.setNoStore(true);
} else if ("no-cache".equals(directiveName)) { cacheControl.setNoCache(true); readFieldNames(cacheControl.getNoCacheFields(), reader); } else if ("no-store".equals(directiveName)) { cacheControl.setNoStore(true);
appendQuotedWithSeparator(b, "no-cache", buildListValue(header.getNoCacheFields()));
appendQuotedWithSeparator(b, "no-cache", buildListValue(header.getNoCacheFields()));
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
if (value.isNoCache()) List<String> fields = value.getNoCacheFields(); if (fields.size() < 1) for (String field : value.getNoCacheFields())
@Override public int hashCode() { int result = 17; result = 31 * result + maxAge; result = 31 * result + sMaxAge; result = 31 * result + ((isPrivate) ? 1 : 0); result = 31 * result + ((noCache) ? 1 : 0); result = 31 * result + ((noStore) ? 1 : 0); result = 31 * result + ((noTransform) ? 1 : 0); result = 31 * result + ((mustRevalidate) ? 1 : 0); result = 31 * result + ((proxyRevalidate) ? 1 : 0); result = 31 * result + getCacheExtension().hashCode(); result = 31 * result + getNoCacheFields().hashCode(); result = 31 * result + getPrivateFields().hashCode(); return result; }
@Override public CacheControl valueOf(final String str) { if (str == null) { return null; } final CacheControl cacheControl = CacheControl.valueOf(str); // workaround for bug in CacheControl's equals() method cacheControl.getCacheExtension(); cacheControl.getNoCacheFields(); return cacheControl; }
@Override public CacheControl valueOf(final String str) { if (str == null) { return null; } final CacheControl cacheControl = CacheControl.valueOf(str); // workaround for bug in CacheControl's equals() method cacheControl.getCacheExtension(); cacheControl.getNoCacheFields(); return cacheControl; }
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
private static CacheControl createCacheControl() { final CacheControl cacheControl = new CacheControl(); cacheControl.getCacheExtension(); // workaround for bug in // CacheControl's equals() method cacheControl.getNoCacheFields(); // workaround for bug in CacheControl's // equals() method return cacheControl; }
private static CacheControl createCacheControl() { final CacheControl cacheControl = new CacheControl(); cacheControl.getCacheExtension(); // workaround for bug in // CacheControl's equals() method cacheControl.getNoCacheFields(); // workaround for bug in CacheControl's // equals() method return cacheControl; }
private static CacheControl createCacheControl() { final CacheControl cacheControl = new CacheControl(); cacheControl.getCacheExtension(); // workaround for bug in // CacheControl's equals() method cacheControl.getNoCacheFields(); // workaround for bug in CacheControl's // equals() method return cacheControl; }
} else if (directiveName.equalsIgnoreCase("no-cache")) { cacheControl.setNoCache(true); readFieldNames(cacheControl.getNoCacheFields(), reader, directiveName); } else if (directiveName.equalsIgnoreCase("no-store")) { cacheControl.setNoStore(true);
public CacheControl build() { CacheControl cacheControl = new CacheControl(); cacheControl.setMustRevalidate(mustRevalidate); cacheControl.setProxyRevalidate(proxyRevalidate); cacheControl.setMaxAge(maxAge); cacheControl.setSMaxAge(sMaxAge); cacheControl.setNoCache(noCache); cacheControl.setPrivate(privateFlag); cacheControl.setNoTransform(noTransform); cacheControl.setNoStore(noStore); if (privateFields != null) { cacheControl.getPrivateFields().addAll(privateFields); } if (noCacheFields != null) { cacheControl.getNoCacheFields().addAll(noCacheFields); } if (cacheExtension != null) { cacheControl.getCacheExtension().putAll(cacheExtension); } return cacheControl; } }
appendWithParameters(buff, "no-cache", header.getNoCacheFields());
public String toString(CacheControl header) { StringBuffer b = new StringBuffer(); if (header.isPrivate()) appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields())); if (header.isNoCache()) appendQuotedWithSeparator(b, "no-cache", buildListValue(header.getNoCacheFields())); if (header.isNoStore()) appendWithSeparator(b, "no-store"); if (header.isNoTransform()) appendWithSeparator(b, "no-transform"); if (header.isMustRevalidate()) appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) appendWithSeparator(b, "proxy-revalidate"); if (header.getMaxAge() != -1) appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) appendWithSeparator(b, "s-maxage", header.getSMaxAge()); for (Map.Entry<String, String> e : header.getCacheExtension().entrySet()) { appendWithSeparator(b, e.getKey(), quoteIfWhitespace(e.getValue())); } return b.toString(); }
public String toString(CacheControl header) { StringBuffer b = new StringBuffer(); if (header.isPrivate()) appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields())); if (header.isNoCache()) appendQuotedWithSeparator(b, "no-cache", buildListValue(header.getNoCacheFields())); if (header.isNoStore()) appendWithSeparator(b, "no-store"); if (header.isNoTransform()) appendWithSeparator(b, "no-transform"); if (header.isMustRevalidate()) appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) appendWithSeparator(b, "proxy-revalidate"); if (header.getMaxAge() != -1) appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) appendWithSeparator(b, "s-maxage", header.getSMaxAge()); for (Map.Entry<String, String> e : header.getCacheExtension().entrySet()) { appendWithSeparator(b, e.getKey(), quoteIfWhitespace(e.getValue())); } return b.toString(); }
appendQuotedWithSeparator(b, "no-cache", buildListValue(header.getNoCacheFields()));