org.mule.cache.responsegenerator
Class DefaultResponseGenerator

java.lang.Object
  extended by org.mule.cache.responsegenerator.DefaultResponseGenerator
All Implemented Interfaces:
ResponseGenerator

public class DefaultResponseGenerator
extends Object
implements ResponseGenerator

Implements ResponseGenerator creating a new MuleEvent for each request.


Constructor Summary
DefaultResponseGenerator()
           
 
Method Summary
 MuleEvent create(MuleEvent requestedEvent, MuleEvent cachedResponseEvent)
          Generates a response event from a request and a cached response for the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResponseGenerator

public DefaultResponseGenerator()
Method Detail

create

public MuleEvent create(MuleEvent requestedEvent,
                        MuleEvent cachedResponseEvent)
Description copied from interface: ResponseGenerator
Generates a response event from a request and a cached response for the request.

Specified by:
create in interface ResponseGenerator
Parameters:
requestedEvent - the request event
cachedResponseEvent - 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.