runMacro
public java.lang.String runMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
java.lang.String parm,
com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp)
Description copied from interface: WebMacro
This method is executed only if this macro returns false for
preferBinary(). It will execute the macro and return its results as a
string, which is then substituted for the macro reference in the web page
where the macro was found.
The response object is used to set cookies and headers only. Any
response body is in the return object. Since 99% of macros are only
filling in an existing page, nothing will be done with that anyway,
and is only important when isAWebPath return true.
- Specified by:
runMacro
in interface WebMacro
- Overrides:
runMacro
in class StdWebMacro
- Parameters:
httpReq
- the external requests object
parm
- any parameter strings given to the macro
httpResp
- the response, with headers
- Returns:
- the string result of running this macro
- See Also:
WebMacro.preferBinary()
,
HTTPRequest