@Test(dataProvider = "pragmaNoCacheData") public void pragmaNoCache(MultivaluedMap<String, String> headers, boolean isPragmaNoCache) { CacheRequestContext requestContext = new CacheRequestContext("GET", URI.create("http: assertEquals(requestContext.isPragmaNoCache(), isPragmaNoCache); }
public boolean isPragmaNoCache() { if (_pragmaNoCache == null) { List<String> values = _headers.get(PRAGMA); _pragmaNoCache = false; if (values != null) { for (String value : values) { if ("no-cache".equalsIgnoreCase(value)) { _pragmaNoCache = true; } } } } return _pragmaNoCache; }
CacheRequestContext { public boolean isPragmaNoCache() { if (_pragmaNoCache == null) { List<String> values = _headers.get(PRAGMA); _pragmaNoCache = false; if (values != null) { for (String value : values) { if ("no-cache".equalsIgnoreCase(value)) { _pragmaNoCache = true; } } } } return _pragmaNoCache; } }
CacheRequestContext { public boolean isPragmaNoCache() { if (_pragmaNoCache == null) { List<String> values = _headers.get(PRAGMA); _pragmaNoCache = false; if (values != null) { for (String value : values) { if ("no-cache".equalsIgnoreCase(value)) { _pragmaNoCache = true; } } } } return _pragmaNoCache; } CacheRequestContext(String requestMethod, URI requestUri, MultivaluedMap<String, String> headers, String requestHash); }
CacheRequestContext { public boolean isPragmaNoCache() { if (_pragmaNoCache == null) { List<String> values = _headers.get(PRAGMA); _pragmaNoCache = false; if (values != null) { for (String value : values) { if ("no-cache".equalsIgnoreCase(value)) { _pragmaNoCache = true; } } } } return _pragmaNoCache; } CacheRequestContext(String requestMethod, URI requestUri, MultivaluedMap<String, String> headers, String requestHash); static CacheRequestContext build(ContainerRequest request, Set<String> vary, boolean includeBody); URI getRequestUri(); String getRequestMethod(); String getRequestHash(); RequestCacheControl getCacheControl(); boolean isPragmaNoCache(); }
CacheRequestContext { public boolean isPragmaNoCache() { if (_pragmaNoCache == null) { List<String> values = _headers.get(PRAGMA); _pragmaNoCache = false; if (values != null) { for (String value : values) { if ("no-cache".equalsIgnoreCase(value)) { _pragmaNoCache = true; } } } } return _pragmaNoCache; } CacheRequestContext(String requestMethod, URI requestUri, MultivaluedMap<String, String> headers, String requestHash); static CacheRequestContext build(ContainerRequest request, Set<String> vary, boolean includeBody); URI getRequestUri(); String getRequestMethod(); String getRequestHash(); RequestCacheControl getCacheControl(); boolean isPragmaNoCache();  }