|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tp23.jasper.DestinationImpl
Replacement for a request/response. It contains an internal StringBuffer to which the jsp writes which can then be read as a normal String.
Constructor Summary | |
DestinationImpl(java.util.Map properties,
Engine server)
The Properties supplied are analogous to the request parameters |
Method Summary | |
void |
forward(java.lang.String jsp)
forward to another MyJasper JSP (does not work if you give it a URL). |
java.lang.String |
getCalledUri()
gets the String supplied to call the JSP. |
java.lang.String |
getOutput()
gets the result of the page. |
java.io.OutputStream |
getOutputStream()
get the StringWriter in an OutputStream wrapper |
java.lang.Object |
getParameter(java.lang.String key)
get a parameter similar to a request parameter but can be any object passed by the engine. |
Engine |
getServer()
Gets the MyJasper that is running the JSP. |
Session |
getSession()
returns the Session. |
java.io.StringWriter |
getWriter()
get the StringWriter to which data is being written |
void |
include(java.lang.String jsp)
Include another MyJasper JSP (does not work if you give it a URL). |
void |
setCalledUri(java.lang.String uri)
Called by the container, the uri can be reset by a JSP but it will have no effect. |
void |
setSession(Session session)
Sets the session to any HashSession. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DestinationImpl(java.util.Map properties, Engine server)
properties
- Any parameters required in the JSPserver
- the container in which this destination existsMethod Detail |
public void setCalledUri(java.lang.String uri)
setCalledUri
in interface Destination
public java.lang.String getCalledUri()
getCalledUri
in interface Destination
MyJasper.getOutput(java.lang.String)
public void setSession(Session session)
setSession
in interface Destination
session
- The new session valuepublic Engine getServer()
getServer
in interface Destination
public java.io.StringWriter getWriter()
getWriter
in interface Destination
public java.io.OutputStream getOutputStream()
getOutputStream
in interface Destination
public Session getSession()
session
variable can also be usedgetSession
in interface Destination
public java.lang.Object getParameter(java.lang.String key)
getParameter
in interface Destination
key
- key to the session object (generally a String)public java.lang.String getOutput()
getOutput
in interface Destination
public void forward(java.lang.String jsp) throws JspEngineException
forward
in interface Destination
public void include(java.lang.String jsp) throws JspEngineException
include
in interface Destination
jsp
- if it ends in .jsp it is treated as a MyJasper jsp from the current jsp root directory
if not is is treated a a fileName on the local machine either abslolute (if it begins with X: or / or
relative to the current jsp root
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |