PageMixer demonstration with Servlet

pagemixer.filter
Class FarewellTrimFilter

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
        |
        +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
              |
              +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
                    |
                    +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
                          |
                          +--pagemixer.filter.FarewellTrimFilter
All Implemented Interfaces:
AuthConstants, AuthKeys, jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer

public class FarewellTrimFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
implements AuthKeys

Filter to process token sequence between '<span class="Auth-Farewell">' and '</span>'.

This filter finds token sequence between '<span class="Auth-Farewell">' and '</span>', then trim it if given context does not have value identified by KEY_FAREWELL.

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


Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Inside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Strategy, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
 
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 class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
DEFAULT
 
Fields inherited from interface common.AuthKeys
KEY_FAREWELL, KEY_INVALID_PASSWORD, KEY_LOGIN, KEY_LOGIN_REQUEST, KEY_LOGIN_REQUIRED, KEY_LOGOUT_REQUEST, KEY_PASSWORD, KEY_USER_UNKNOWN, KEY_USERNAME, KEY_WELCOME
 
Fields inherited from interface common.AuthConstants
CLASS_ALREADY_LOGIN, CLASS_FAREWELL, CLASS_INVALID_PASSWORD, CLASS_LOGIN_REQUIRED, CLASS_NOT_YET_LOGIN, CLASS_USER_UNKNOWN, CLASS_USERNAME, CLASS_WELCOME, PARAM_LOGIN, PARAM_LOGIN_REQUEST, PARAM_LOGOUT_REQUEST, PARAM_PASSWORD, PARAM_USERNAME, REQUEST_FAREWELL, REQUEST_WELCOME, SESSION_LOGIN
 
Constructor Summary
FarewellTrimFilter()
          Create filter to process token sequence between '<span class="Auth-Farewell">' and '</span>'.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
protected  boolean shouldTrim(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
           
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
getStrategy
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
beforeFirst, onFirst, onInside, onLast
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
afterLast, consume, flush
 
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

FarewellTrimFilter

public FarewellTrimFilter()
Create filter to process token sequence between '<span class="Auth-Farewell">' and '</span>'.
Method Detail

shouldTrim

protected boolean shouldTrim(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
Overrides:
shouldTrim in class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter

main

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

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


PageMixer demonstration with Servlet