if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields()));
appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields()));
if (value.isPrivate()) List<String> fields = value.getPrivateFields(); if (fields.size() < 1) addDirective("private", buffer); else for (String field : value.getPrivateFields())
@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; }
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if ("private".equals(directiveName)) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader); } else if ("public".equals(directiveName)) {
if (directiveName.equalsIgnoreCase("private")) { cacheControl.setPrivate(true); readFieldNames(cacheControl.getPrivateFields(), reader, directiveName); } else if (directiveName.equalsIgnoreCase("public")) {
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, "private", header.getPrivateFields());
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, "private", buildListValue(header.getPrivateFields()));
appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields()));
appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields()));
appendQuotedWithSeparator(b, "private", buildListValue(header.getPrivateFields()));