org.jmage.dispatcher
Class FilteringRequestDispatcher

java.lang.Object
  extended by org.jmage.dispatcher.FilteringRequestDispatcher
All Implemented Interfaces:
Configurable, RequestDispatcher
Direct Known Subclasses:
InternalRequestDispatcher

public class FilteringRequestDispatcher
extends java.lang.Object
implements RequestDispatcher

FilteringRequestDispatcher dispatches all requests to ResourceManager, FilterChainManager and EncoderManager.


Field Summary
protected  ApplicationContext context
           
protected static java.lang.String DISPATCH_SUCCESS
           
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
FilteringRequestDispatcher()
           
 
Method Summary
 void configure(ApplicationContext context)
          Configuration
 byte[] createFrom(ImageRequest imageRequest)
          Dispatch cache interceptable
 void dispatch(ImageRequest request)
          Wrapper method for proxy cache.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log

context

protected ApplicationContext context

DISPATCH_SUCCESS

protected static final java.lang.String DISPATCH_SUCCESS
See Also:
Constant Field Values
Constructor Detail

FilteringRequestDispatcher

public FilteringRequestDispatcher()
Method Detail

configure

public void configure(ApplicationContext context)
Configuration

Specified by:
configure in interface Configurable
Parameters:
context -

dispatch

public void dispatch(ImageRequest request)
              throws JmageException
Wrapper method for proxy cache. This method is horrible but it works around the proxy issue by not calling createFrom on itself but the wrapped reference it obtains from the context.

Specified by:
dispatch in interface RequestDispatcher
Parameters:
request -
Throws:
JmageException

createFrom

public byte[] createFrom(ImageRequest imageRequest)
                  throws JmageException
Description copied from interface: RequestDispatcher
Dispatch cache interceptable

Specified by:
createFrom in interface RequestDispatcher
Returns:
the dispatched ImageRequest
Throws:
JmageException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2008 Sourceforge. All Rights Reserved.