View Javadoc

1   package com.atlassian.httpclient.apache.httpcomponents.cache;
2   
3   import com.google.common.collect.ForwardingObject;
4   import org.apache.http.client.cache.HttpCacheEntry;
5   import org.apache.http.client.cache.HttpCacheStorage;
6   import org.apache.http.client.cache.HttpCacheUpdateCallback;
7   import org.apache.http.client.cache.HttpCacheUpdateException;
8   
9   import java.io.IOException;
10  
11  
12  public abstract class ForwardingHttpCacheStorage extends ForwardingObject implements HttpCacheStorage {
13      @Override
14      protected abstract HttpCacheStorage delegate();
15  
16      @Override
17      public void putEntry(String key, HttpCacheEntry entry) throws IOException {
18          delegate().putEntry(key, entry);
19      }
20  
21      @Override
22      public HttpCacheEntry getEntry(String key) throws IOException {
23          return delegate().getEntry(key);
24      }
25  
26      @Override
27      public void removeEntry(String key) throws IOException {
28          delegate().removeEntry(key);
29      }
30  
31      @Override
32      public void updateEntry(String key, HttpCacheUpdateCallback callback) throws IOException, HttpCacheUpdateException {
33          delegate().updateEntry(key, callback);
34      }
35  }