|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of the WebMacroService interface.
Field Summary | |
static java.lang.String |
SERVICE_NAME
The name of this service. |
static java.lang.String |
WEBMACRO_CONTEXT
The key for a WebMacro context. |
Method Summary | |
org.webmacro.servlet.WebContext |
getContext()
Create an empty WebContext object. |
org.webmacro.servlet.WebContext |
getContext(RunData data)
Create a WebContext from the RunData object. |
org.webmacro.Template |
getTemplate(java.lang.String template)
Return a template from WebMacro. |
java.lang.String |
handleRequest(org.webmacro.servlet.WebContext wc,
java.lang.String template)
Process the request and fill in the template with the values you set in the WebContext. |
void |
handleRequest(org.webmacro.servlet.WebContext wc,
java.lang.String template,
org.webmacro.FastWriter out)
Process the request and fill in the template with the values you set in the WebContext. |
void |
handleRequest(org.webmacro.servlet.WebContext wc,
java.lang.String filename,
java.io.OutputStream out)
Process the request and fill in the template with the values you set in the WebContext. |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String WEBMACRO_CONTEXT
Method Detail |
public java.lang.String handleRequest(org.webmacro.servlet.WebContext wc, java.lang.String template) throws TurbineException
wc
- A WebContext.template
- A String with the filename of the template.TurbineException
- Error processing request.public void handleRequest(org.webmacro.servlet.WebContext wc, java.lang.String filename, java.io.OutputStream out) throws java.lang.Exception
wc
- The populated context.filename
- The file name of the template.out
- A stream to write the processed template to.java.lang.Exception
- Error processing request.public void handleRequest(org.webmacro.servlet.WebContext wc, java.lang.String template, org.webmacro.FastWriter out) throws java.lang.Exception
wc
- A WebContext.filename
- A String with the filename of the template.out
- A Writer where we will write the process template as
a String.java.lang.Exception
- Error processing request.public org.webmacro.servlet.WebContext getContext()
public org.webmacro.servlet.WebContext getContext(RunData data)
data
- The Turbine RunData object.public org.webmacro.Template getTemplate(java.lang.String template) throws org.webmacro.NotFoundException
filename
- A String with the name of the template.org.webmacro.NotFoundException
- The template could not be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |