org.codehaus.httpcache4j.resolver
Interface PayloadCreator


public interface PayloadCreator

Creates a payload from the response. Most users will want to use the DefaultPayloadCreator in the core project. This is expected to be used with the ResponseResolver.

Author:
Erlend Hamnaberg

Method Summary
 Payload createPayload(Headers headers, java.io.InputStream stream)
          Creates a payload useable by the response.
 

Method Detail

createPayload

Payload createPayload(Headers headers,
                      java.io.InputStream stream)
Creates a payload useable by the response.

Parameters:
headers - the headers to determine cacheablity
stream - the stream to create the payload from.
Returns:
the created payload


Copyright © 2008. All Rights Reserved.