PageMixer demonstration with Servlet

pagemixer.filter
Class CommonFilter

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
        |
        +--jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
              |
              +--pagemixer.filter.CommonFilter
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer, ServletConstants, ServletKeys

public class CommonFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
implements ServletKeys

Composit filter consisting of filters related to common function.

This filter consists of below filters.

This filter may modify URL information in tokens. So, you should place this at the end of filter sequence, if you have plan to create custom filter to modify URL information.

If you use FilterPipeline to combine with other filters, please "push" this at first because FilterPipeline is implemented as "Last In(= push) First Consume"(, or "add" at last)

By the way, URL rewriting of this filter may rewrite URL not pointing to internal page, because Servlet container "HTTPServletResponse" implementation may encode session ID whenever cookie is disabled on client (I know at least one application server which does so).

See main(java.lang.String[]) to use as stand-alone application.


Inner Class Summary
static class CommonFilter.Factory
          Factory for "CommonFilter".
 
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter.Factory
 
Fields inherited from interface common.ServletKeys
KEY_BASE_HREF
 
Fields inherited from interface common.ServletConstants
INIT_AUTH_PASSWORD, INIT_AUTH_USERNAME, INIT_PAGE_AUTH, INIT_PAGE_SHOP_BASKET, INIT_PAGE_TOP, REQUEST_BASE_HREF
 
Constructor Summary
CommonFilter()
          Create filter consisting of filters related to common function.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.FilterPipeline
add, add, add, addFactories, addFilters, consume, flush, push, push, push, pushFactories, pushFilters
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
addCleanup, clear, connectTo, getConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonFilter

public CommonFilter()
Create filter consisting of filters related to common function.
Method Detail

main

public static void main(java.lang.String[] args)
Invoke as stand-alone application.
USAGE:java pagemixer.filter.CommonFilter InputFilename

Please see description of pagemixer.filter about class path requirement to execute this class.


PageMixer demonstration with Servlet