biz.hammurapi.web.mda
Interface SubChannel
- All Superinterfaces:
- biz.hammurapi.util.Attributable, Channel
- All Known Implementing Classes:
- MemorySubChannel
- public interface SubChannel
- extends Channel
|
Method Summary |
void |
flush(java.io.Writer writer)
Outputs all parts to writer and clears all attributtes. |
java.io.Writer |
getFooter()
|
java.io.Writer |
getHeader()
|
void |
setPartsComparator(java.util.Comparator partsComparator)
Sets part order. |
| Methods inherited from interface biz.hammurapi.util.Attributable |
getAttribute, removeAttribute, setAttribute |
setPartsComparator
public void setPartsComparator(java.util.Comparator partsComparator)
- Sets part order. By default parts are ordered by their retrieval order. E.g. if part 'body'
was requested before part 'body2' then it will be output before 'body2'.
flush
public void flush(java.io.Writer writer)
throws java.io.IOException
- Outputs all parts to writer and clears all attributtes.
Channel shall not be used afer flush() is invoked.
- Parameters:
writer -
- Throws:
java.io.IOException
getHeader
public java.io.Writer getHeader()
- Returns:
- Header writer. Header is output before any other parts.
getFooter
public java.io.Writer getFooter()
- Returns:
- Footer writer. Footer is output after any other parts.
Copyright © 2006 Hammurapi Group. All Rights Reserved.