org.mule.cache.responsegenerator
Interface ResponseGenerator

All Known Implementing Classes:
DefaultResponseGenerator

public interface ResponseGenerator

Generates MuleEvent responses from an request event and a previously cached response.

There is no constraint on the way the response is generated, it could be the same cached response, or could be a new instance with different properties.


Method Summary
 MuleEvent create(MuleEvent request, MuleEvent cachedResponse)
          Generates a response event from a request and a cached response for the request.
 

Method Detail

create

MuleEvent create(MuleEvent request,
                 MuleEvent cachedResponse)
Generates a response event from a request and a cached response for the request.

Parameters:
request - the request event
cachedResponse - the cached response for the request
Returns:
a response event generated form the passed information. Could be null.


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.