@Test public void testGetContentType() { assertNotNull(entry.getContentType()); assertEquals(contentType, entry.getContentType()); }
public String getContentType() { Object contentType = headers.getHeaders().get("Content-Type"); if (contentType == null) return null; if (contentType instanceof String) return (String) contentType; throw new IllegalStateException("Response contained more than one 'Content-type' header"); }
CacheEntry implements Serializable { public String getContentType() { Object contentType = headers.getHeaders().get("Content-Type"); if (contentType == null) return null; if (contentType instanceof String) return (String) contentType; throw new IllegalStateException("Response contained more than one 'Content-type' header"); } }
CacheEntry implements Serializable { public String getContentType() { Object contentType = headers.getHeaders().get("Content-Type"); if (contentType == null) return null; if (contentType instanceof String) return (String) contentType; throw new IllegalStateException("Response contained more than one 'Content-type' header"); } protected  CacheEntry(CacheHandle handle, byte[] content, String encoding,
      CacheableHttpServletResponseHeaders headers); }
CacheEntry implements Serializable { public String getContentType() { Object contentType = headers.getHeaders().get("Content-Type"); if (contentType == null) return null; if (contentType instanceof String) return (String) contentType; throw new IllegalStateException("Response contained more than one 'Content-type' header"); } protected  CacheEntry(CacheHandle handle, byte[] content, String encoding,
      CacheableHttpServletResponseHeaders headers); String getKey(); String getEncoding(); String getETag(); long getCreationDate(); long getModificationDate(); long getClientRevalidationTime(); boolean containsTag(CacheTag tag); void setHeaders(CacheableHttpServletResponseHeaders headers); CacheableHttpServletResponseHeaders getHeaders(); byte[] getContent(); String getContentType(); boolean notModified(long date); boolean matches(String eTag); static String createETag(long value); @Override String toString(); }
CacheEntry implements Serializable { public String getContentType() { Object contentType = headers.getHeaders().get("Content-Type"); if (contentType == null) return null; if (contentType instanceof String) return (String) contentType; throw new IllegalStateException("Response contained more than one 'Content-type' header"); } protected  CacheEntry(CacheHandle handle, byte[] content, String encoding,
      CacheableHttpServletResponseHeaders headers); String getKey(); String getEncoding(); String getETag(); long getCreationDate(); long getModificationDate(); long getClientRevalidationTime(); boolean containsTag(CacheTag tag); void setHeaders(CacheableHttpServletResponseHeaders headers); CacheableHttpServletResponseHeaders getHeaders(); byte[] getContent(); String getContentType(); boolean notModified(long date); boolean matches(String eTag); static String createETag(long value); @Override String toString();  }