1 28 29 package com.caucho.server.cache; 30 31 import com.caucho.server.connection.AbstractHttpResponse; 32 import com.caucho.server.connection.CauchoRequest; 33 34 import javax.servlet.FilterChain ; 35 import java.io.IOException ; 36 import java.io.OutputStream ; 37 import java.io.Writer ; 38 import java.util.ArrayList ; 39 40 43 abstract public class AbstractCacheFilterChain implements FilterChain { 44 53 abstract public boolean fillFromCache(CauchoRequest req, 54 AbstractHttpResponse response, 55 AbstractCacheEntry abstractEntry, 56 boolean isTop) 57 throws IOException ; 58 59 72 abstract public OutputStream startByteCaching(CauchoRequest req, 73 AbstractHttpResponse res, 74 ArrayList <String > keys, 75 ArrayList <String > values, 76 String contentType, 77 String charEncoding, 78 long contentLength); 79 80 93 abstract public Writer startCharCaching(CauchoRequest req, 94 AbstractHttpResponse res, 95 ArrayList <String > keys, 96 ArrayList <String > values, 97 String contentType, 98 String charEncoding, 99 long contentLength); 100 105 abstract public void finishCaching(boolean okay); 106 } 107 | Popular Tags |