|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.services.webmacro.TurbineWebMacro
This is a simple static accessor to common WebMacro tasks such as getting an instance of a context as well as handling a request for processing a template. It uses the TurbineWebMacroService to obtain an instance of WebMacro. WebContext context = WebMacro.getContext(data); context.put("message", "Hello from Turbine!"); String results = WebMacro.handleRequest(context,"helloWorld.wm"); data.getPage().getBody().addElement(results);
Constructor Summary | |
TurbineWebMacro()
Deprecated. |
Method Summary | |
static org.webmacro.servlet.WebContext |
getContext()
Deprecated. This method returns a blank WebContext object. |
static org.webmacro.servlet.WebContext |
getContext(RunData data)
Deprecated. This returns a WebContext that you can pass into handleRequest once you have populated it with information that the template will know about. |
protected static WebMacroService |
getService()
Deprecated. Utility method for accessing the service implementation. |
static java.lang.String |
handleRequest(org.webmacro.servlet.WebContext context,
java.lang.String templateFilePath)
Deprecated. |
static void |
handleRequest(org.webmacro.servlet.WebContext context,
java.lang.String filename,
java.io.OutputStream out)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TurbineWebMacro()
Method Detail |
protected static final WebMacroService getService()
public static void handleRequest(org.webmacro.servlet.WebContext context, java.lang.String filename, java.io.OutputStream out) throws java.lang.Exception
WebMacroService.handleRequest(org.webmacro.servlet.WebContext, java.lang.String)
public static java.lang.String handleRequest(org.webmacro.servlet.WebContext context, java.lang.String templateFilePath) throws java.lang.Exception
WebMacroService.handleRequest(org.webmacro.servlet.WebContext, java.lang.String)
public static org.webmacro.servlet.WebContext getContext(RunData data)
data
- A Turbine RunData.public static org.webmacro.servlet.WebContext getContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |