|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmage.filterchain.FilterChainManager
public class FilterChainManager
FilterChainManager controls all FilterChains and acts as a delegate to all it's attached FilterChainFactories. Create FilterChains by specifying a URI filterchain:com.package.FilterChain and let the delegates work out how to create it. FilterChains can be constructed out of single filters, in which case the class name of that Filter should be provided.
A more sophisticated way to create chains is to serialize them into XML format. See resources/xml for examples.
Field Summary | |
---|---|
protected ApplicationContext |
applicationContext
|
protected java.util.List |
filterChainFactories
|
protected static org.apache.log4j.Logger |
log
|
Constructor Summary | |
---|---|
protected |
FilterChainManager()
Default Constructor |
|
FilterChainManager(java.util.List filterChainFactories)
Creates a EncoderManager for an array of given FilterChainFactories |
Method Summary | |
---|---|
void |
configure(ApplicationContext context)
Configure FilterChainManager |
protected FilterChain[] |
create(ImageRequest request)
Creates a FilterChain object to use for a given unique chainUri, denoted by a URI following the convention filterchain:com.package.FilterChain |
protected javax.media.jai.PlanarImage |
doFilter(FilterChain[] chains,
javax.media.jai.PlanarImage image)
Filters an image through an existing FilterChain[]. |
protected javax.media.jai.PlanarImage |
filter(ImageRequest imageRequest)
Convenience method combining filter creation and image filtering. |
void |
handle(ImageRequest request)
Filters an ImageRequest with an existing Filterchain |
protected java.lang.String |
lookupFilterChainName(java.lang.String filterChain)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List filterChainFactories
protected ApplicationContext applicationContext
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
protected FilterChainManager()
public FilterChainManager(java.util.List filterChainFactories)
filterChainFactories
- Method Detail |
---|
public void configure(ApplicationContext context)
configure
in interface Configurable
context
- public void handle(ImageRequest request) throws JmageException
handle
in interface RequestHandler
request
- the request
FilterChainException
FilterException
JmageException
protected FilterChain[] create(ImageRequest request) throws FilterChainException, FilterException
request
- the ImageRequest
FilterChainException
- if the filterchain cannot be constructed or handled properly
FilterException
protected javax.media.jai.PlanarImage doFilter(FilterChain[] chains, javax.media.jai.PlanarImage image) throws FilterException
chains
- the FilterChain[]image
- the image
FilterException
protected javax.media.jai.PlanarImage filter(ImageRequest imageRequest) throws FilterChainException, FilterException
imageRequest
- the request
FilterChainException
- if the filterchain can't be created or found
FilterException
- if the filterchain can't filter the image.protected java.lang.String lookupFilterChainName(java.lang.String filterChain)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |