PageMixer demonstration with Servlet

pagemixer.filter
Class HeaderTextInsetFilter

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.HeaderTextInsetFilter
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer

public class HeaderTextInsetFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside

Filter to inset request header value as HTML safe text.

This filter finds token sequence between '<span>', which has specified "class" attribute value, and '</span>', then insets header value as HTML safe text inside it.

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
 
Constructor Summary
HeaderTextInsetFilter(java.lang.String name, java.lang.String attrValue)
          Constructor.
 
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

HeaderTextInsetFilter

public HeaderTextInsetFilter(java.lang.String name,
                             java.lang.String attrValue)
Constructor.
Parameters:
name - of header to inset.
attrValue - of "class" attribute in "span" tag.
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.HeaderTextInsetFilter InputFilename HeaderName SpanClass [HeaderValue]

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


PageMixer demonstration with Servlet