|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.infohazard.maverick.flow
Class LastStep

java.lang.Objectorg.infohazard.maverick.flow.LastStep
- All Implemented Interfaces:
- TransformStep
- class LastStep
- extends java.lang.Object
- implements TransformStep
- extends java.lang.Object
Simple transformation step which dumps to the real output. There are NO subsequent steps! This is the end of the line.
| Field Summary | |
private static org.apache.commons.logging.Log |
log
Logger. |
protected MaverickContext |
mavCtx
|
| Constructor Summary | |
LastStep(MaverickContext mctx)
|
|
| Method Summary | |
void |
done()
This should be called after writing is complete. |
javax.servlet.http.HttpServletResponse |
getResponse()
Must call done() when finished. |
org.xml.sax.ContentHandler |
getSAXHandler()
Dumps directly to the real response |
java.io.Writer |
getWriter()
Must call done() when finished. |
void |
go(java.io.Reader input)
Writes the reader to the response. |
void |
go(javax.xml.transform.Source input)
Serializes the XML Source to the response. |
void |
go(java.lang.String input)
Writes the String to the response. |
boolean |
isLast()
Your steps should always return false. |
void |
setContentType(java.lang.String contentType)
Actually set this value, we are the last element in the chain. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
- Logger.
mavCtx
protected MaverickContext mavCtx
| Constructor Detail |
LastStep
public LastStep(MaverickContext mctx)
| Method Detail |
isLast
public boolean isLast()
- Description copied from interface:
TransformStep - Your steps should always return false. The last step, which
is not really a step at all - it's the real output stream,
will return true.
- Specified by:
isLastin interfaceTransformStep
setContentType
public void setContentType(java.lang.String contentType)
- Actually set this value, we are the last element in the chain.
- Specified by:
setContentTypein interfaceTransformStep
getSAXHandler
public org.xml.sax.ContentHandler getSAXHandler() throws java.io.IOException, javax.servlet.ServletException
- Dumps directly to the real response
- Specified by:
getSAXHandlerin interfaceTransformStep
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
- Description copied from interface:
TransformStep - Must call done() when finished.
- Specified by:
getResponsein interfaceTransformStep
getWriter
public java.io.Writer getWriter() throws java.io.IOException, javax.servlet.ServletException
- Description copied from interface:
TransformStep - Must call done() when finished.
- Specified by:
getWriterin interfaceTransformStep
done
public void done()
throws java.io.IOException,
javax.servlet.ServletException
- Description copied from interface:
TransformStep - This should be called after writing is complete.
- Specified by:
donein interfaceTransformStep
go
public void go(javax.xml.transform.Source input) throws java.io.IOException, javax.servlet.ServletException
- Serializes the XML Source to the response.
- Specified by:
goin interfaceTransformStep
go
public void go(java.io.Reader input) throws java.io.IOException, javax.servlet.ServletException
- Writes the reader to the response.
- Specified by:
goin interfaceTransformStep
go
public void go(java.lang.String input) throws java.io.IOException, javax.servlet.ServletException
- Writes the String to the response.
- Specified by:
goin interfaceTransformStep
|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.infohazard.maverick.flow.LastStep