org.apache.http.client.cache
Interface ResourceFactory

All Known Implementing Classes:
FileResourceFactory, HeapResourceFactory

public interface ResourceFactory

Generates Resource instances.

Since:
4.1

Method Summary
 Resource copy(String requestId, Resource resource)
           
 Resource generate(String requestId, InputStream instream, InputLimit limit)
           
 

Method Detail

generate

Resource generate(String requestId,
                  InputStream instream,
                  InputLimit limit)
                  throws IOException
Throws:
IOException

copy

Resource copy(String requestId,
              Resource resource)
              throws IOException
Throws:
IOException


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.