|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpecialTagHandler
| Method Summary | |
|---|---|
void |
executeTag(ParseContext context,
InputStream input)
actually perform the action associated with this tag. |
long |
getTagLength()
Get the length of the area in the sourcefile. |
long |
getTagStart()
Get start position of the area in the sourcefile this handler processes. |
SGMLTag |
parseTag(ParseContext context,
PositionReader input,
long startPos,
SGMLTag startTag)
Parse tag. |
| Method Detail |
|---|
SGMLTag parseTag(ParseContext context,
PositionReader input,
long startPos,
SGMLTag startTag)
throws IOException
The parseTag() method is called before
any processing is done. Its purpose is to parse the area
this tag spans and probably read in parameters used at
execution time.
This method returns the last tag belonging to the
area handled by this handler (for server side included
servlets, this would be </SERVLET>).
For simple one-tag Handlers this is simply the tag passed
to this method. If the Handler decides not to handle this tag, this
method should return null.
context - The context used while parsing; contains
at least the HttpServletRequest and HttpServletResponse.input - The PositionReader, located after the Name token
of the TagstartPos - The Position parsing of this token beganstartTag - the SGMLTag found in the file.
IOExceptionlong getTagStart()
<"
of the <SpecialTag> within the inputfile.
long getTagLength()
<SpecialTag> or the
area <SpecialTag>...</SpecialTag>
void executeTag(ParseContext context,
InputStream input)
throws Exception
Exception - anything can happen .. and throw an Exception
which is caught in PageParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||