pagemixer.filter
Class WelcomeTrimFilter
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.WelcomeTrimFilter
- All Implemented Interfaces:
- AuthConstants, jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer
- public class WelcomeTrimFilter
- extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
- implements AuthConstants
Filter to process token sequence between
'<span class="Auth-Welcome">' and '</span>'.
This filter finds token sequence between
'<span class="Auth-Welcome">' and '</span>',
then trim it
if given context does not have value identified by
the key specified at construction time.
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.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 |
WelcomeTrimFilter(java.lang.Object keyWelcome)
Create filter to process token sequence between
'<span class="Auth-Welcome">' 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 |
WelcomeTrimFilter
public WelcomeTrimFilter(java.lang.Object keyWelcome)
- Create filter to process token sequence between
'<span class="Auth-Welcome">' and '</span>'.
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.WelcomeTrimFilter
InputFilename [WelcomeFlag]
- InputFilename:File name to parse
- WelcomeFlag(opt):Specify Any value if welcome flag is on
Please see description of
pagemixer.filter
about class path requirement to execute this class.