appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
if (value.isNoTransform()) addDirective("no-transform", buffer); if (value.isNoStore()) addDirective("no-store", buffer); if (value.isProxyRevalidate()) addDirective("proxy-revalidate", buffer); if (value.getSMaxAge() > -1) addDirective("s-maxage", buffer).append("=").append(value.getSMaxAge()); if (value.getMaxAge() > -1) addDirective("max-age", buffer).append("=").append(value.getMaxAge());
sb.append(MUST_REVALIDATE).append(separator); if (c.isProxyRevalidate()) { sb.append(PROXY_REVALIDATE).append(separator);
sb.append(MUST_REVALIDATE).append(separator); if (c.isProxyRevalidate()) { sb.append(PROXY_REVALIDATE).append(separator);
b.append(", no-transform"); if (value.isProxyRevalidate()) { b.append(", proxy-revalidate");
if (cacheControl.isPrivate()) directives.add(CacheDirective.privateInfo()); if (cacheControl.isProxyRevalidate()) directives.add(CacheDirective.proxyMustRevalidate()); for (Map.Entry<String, String> c : cacheControl.getCacheExtension()
if (value.isNoTransform()) addDirective("no-transform", buffer); if (value.isNoStore()) addDirective("no-store", buffer); if (value.isProxyRevalidate()) addDirective("proxy-revalidate", buffer); if (value.getSMaxAge() > -1) addDirective("s-maxage", buffer).append("=").append(value.getSMaxAge()); if (value.getMaxAge() > -1) addDirective("max-age", buffer).append("=").append(value.getMaxAge());
appendString(buff, "must-revalidate"); if (header.isProxyRevalidate()) { appendString(buff, "proxy-revalidate");
if (proxyRevalidate != other.isProxyRevalidate()) { return false;
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(); }
appendDirective(cacheControlHeader, MUST_REVALIDATE); if (header.isProxyRevalidate()) { appendDirective(cacheControlHeader, PROXY_REVALIDATE);
appendDirective(cacheControlHeader, MUST_REVALIDATE); if (header.isProxyRevalidate()) { appendDirective(cacheControlHeader, PROXY_REVALIDATE);
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");
appendWithSeparator(b, "must-revalidate"); if (header.isProxyRevalidate()) { appendWithSeparator(b, "proxy-revalidate");