PageMixer demonstration

pagemixer.filter
Class UsernameTextInsetFilter

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.SequenceDataInsetFilter
                    |
                    +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside
                          |
                          +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
                                |
                                +--pagemixer.filter.UsernameTextInsetFilter
All Implemented Interfaces:
AuthConstants, jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer

public class UsernameTextInsetFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
implements AuthConstants

Filter to inset user name as HTML safe text.

This filter finds token sequence between '<span class="Auth-UserName">' and '</span>', then insets user name as HTML safe text inside it.

User name is the 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.SequenceDataInsetFilter
jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextWhole, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.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 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
UsernameTextInsetFilter(java.lang.Object keyLogin)
          Create filter to inset user name as HTML safe text.
 
Method Summary
protected  java.lang.String getText(java.lang.Object data)
           
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
insetData
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside
onFirst, onLast
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter
getData
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
afterLast, beforeFirst, consume, flush, onInside
 
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

UsernameTextInsetFilter

public UsernameTextInsetFilter(java.lang.Object keyLogin)
Create filter to inset user name as HTML safe text.
Method Detail

getText

protected java.lang.String getText(java.lang.Object data)
Overrides:
getText in class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside

main

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

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


PageMixer demonstration