Package ch.entwine.weblounge.cache.impl.handle

Examples of ch.entwine.weblounge.cache.impl.handle.TaggedCacheHandle


   *      ch.entwine.weblounge.common.request.WebloungeResponse, long, long)
   */
  public CacheHandle startResponse(CacheTag[] uniqueTags,
      WebloungeRequest request, WebloungeResponse response,
      long expirationTime, long revalidationTime) {
    CacheHandle hdl = new TaggedCacheHandle(uniqueTags, expirationTime, revalidationTime);
    return startResponse(hdl, request, response);
  }
View Full Code Here


   */
  @Before
  public void setUp() throws Exception {
    tags.add(tag);
    tags.add(otherTag);
    handle = new TaggedCacheHandle(tags.getTags(), expirationTime, recheckTime);
   
    response = new CacheableHttpServletResponse(new MockHttpServletResponse());
    transaction = response.startTransaction(handle, filter);
  }
View Full Code Here

    tags.add(tag);
    tags.add(otherTag);
    headers = new CacheableHttpServletResponseHeaders();
    headers.setHeader(testHeaderName, testHeaderValue);
    headers.setHeader("Content-Type", contentType);
    handle = new TaggedCacheHandle(tags.getTags(), expirationTime, recheckTime);
    entry = new CacheEntry(handle, content.getBytes(), encoding, headers);
  }
View Full Code Here

  @Test
  public void testGetETag() throws Exception {
    String eTag = entry.getETag();
    assertNotNull(eTag);
    Thread.sleep(1000);
    CacheHandle newHandle = new TaggedCacheHandle(tags.getTags(), expirationTime, recheckTime);
    String newETag = new CacheEntry(newHandle, content.getBytes(), encoding, headers).getETag();
    assertFalse(eTag.equals(newETag));
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.cache.impl.handle.TaggedCacheHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.