pagemixer.filter
Class UsernameAttrInsetFilter
java.lang.Object
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.TokenEditFilter
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.Attr
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.HTMLSafeAttr
|
+--pagemixer.filter.UsernameAttrInsetFilter
- All Implemented Interfaces:
- AuthConstants, jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer
- public class UsernameAttrInsetFilter
- extends jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.HTMLSafeAttr
- implements AuthConstants
Filter to inset user name as HTML safe attribute value in token.
This filter finds token which:
- is named as "INPUT"
- has attribute named as "NAME", and
- its value is "Auth-UserName"
Then, this insets user name as value of "VALUE" attribute.
See main(java.lang.String[])
to use as stand-alone application.
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter |
jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.Attr, jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.HTMLSafeAttr, jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.HTMLSafeText |
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 |
UsernameAttrInsetFilter(java.lang.Object keyUsername)
Create filter to inset user name as HTML safe attribute value in token. |
Method Summary |
protected java.lang.String |
getValue(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.TokenDataInsetFilter.HTMLSafeAttr |
editAttributes |
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.Attr |
inset |
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter |
edit |
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.TokenEditFilter |
consume, flush, hasInterest |
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 |
UsernameAttrInsetFilter
public UsernameAttrInsetFilter(java.lang.Object keyUsername)
- Create filter to inset user name as HTML safe attribute value in token.
- Parameters:
keyUsername
- key object to find username out in context.
getValue
protected java.lang.String getValue(java.lang.Object data)
- Overrides:
getValue
in class jp.ne.dti.lares.foozy.pagemixer.mixer.TokenDataInsetFilter.HTMLSafeAttr
main
public static void main(java.lang.String[] args)
- Invoke as stand-alone application.
USAGE:java pagemixer.filter.UsernameAttrInsetFilter
InputFilename [NameOfUser]
- InputFilename:File name to parse
- NameOfUser(opt):Name of user if request has one as parameter
Please see description of
pagemixer.filter
about class path requirement to execute this class.