appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
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()); if (value.isPrivate())
sb.append(MAX_AGE).append('=').append(c.getMaxAge()).append(separator); if (c.getSMaxAge() != -1) { sb.append(SMAX_AGE).append('=').append(c.getSMaxAge()).append(separator);
b.append(", max-age=").append(value.getMaxAge()); if (value.getSMaxAge() >= 0) { b.append(", s-maxage=").append(value.getSMaxAge());
sb.append(MAX_AGE).append('=').append(c.getMaxAge()).append(separator); if (c.getSMaxAge() != -1) { sb.append(SMAX_AGE).append('=').append(c.getSMaxAge()).append(separator);
if (cacheControl.getMaxAge() >= 0) directives.add(CacheDirective.maxAge(cacheControl.getMaxAge())); if (cacheControl.getSMaxAge() >= 0) directives.add(CacheDirective.sharedMaxAge(cacheControl .getSMaxAge())); if (!cacheControl.getNoCacheFields().isEmpty()) directives.add(CacheDirective.noCache(cacheControl
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()); if (value.isPrivate())
appendString(buff, Integer.toString(header.getMaxAge())); if (header.getSMaxAge() >= 0) { appendString(buff, Integer.toString(header.getSMaxAge()));
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, MAX_AGE, header.getMaxAge()); if (header.getSMaxAge() != -1) { appendDirective(cacheControlHeader, S_MAXAGE, header.getSMaxAge());
appendDirective(cacheControlHeader, MAX_AGE, header.getMaxAge()); if (header.getSMaxAge() != -1) { appendDirective(cacheControlHeader, S_MAXAGE, header.getSMaxAge());
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
if (header.getSMaxAge() >= 0) appendString(buff, header.getSMaxAge() + "");
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
appendWithSeparator(b, "max-age", header.getMaxAge()); if (header.getSMaxAge() != -1) { appendWithSeparator(b, "s-maxage", header.getSMaxAge());
if (sMaxAge != other.getSMaxAge()) { return false;