|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WebMacro
Web Macros are special commands which can be inserted into coffeemud web page (cmvp) files, and can have those command strings substituted with calculated results. They can include parameters, and can access the other URL parameters.
| Method Summary | |
|---|---|
java.lang.String |
getFilename(ExternalHTTPRequests httpReq,
java.lang.String filename)
If this macro returns true from isAWebPath(), this will be the substitute filename to use as a page for returning to the caller. |
java.lang.String |
getSpecialContentHeader(java.lang.String filename)
Whether this macro returns an attachment instead of something displayable. |
boolean |
isAdminMacro()
Whether this macro is restricted to the admin web server. |
boolean |
isAWebPath()
Whether this macro substitutes as an aspect of the web path instead of a standard web macro. |
java.lang.String |
name()
The public name of this macro |
boolean |
preferBinary()
Whether the runMacro or runBinaryMacro executor should be called. |
byte[] |
runBinaryMacro(ExternalHTTPRequests httpReq,
java.lang.String parm)
This method is executed only if this macro returns true for preferBinary(). |
java.lang.String |
runMacro(ExternalHTTPRequests httpReq,
java.lang.String parm)
This method is executed only if this macro returns false for preferBinary(). |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
java.lang.String name()
boolean preferBinary()
runBinaryMacro(ExternalHTTPRequests, String),
runMacro(ExternalHTTPRequests, String)boolean isAdminMacro()
java.lang.String getSpecialContentHeader(java.lang.String filename)
filename - the filename from getFilename
getFilename(ExternalHTTPRequests, String)boolean isAWebPath()
getFilename(ExternalHTTPRequests, String)
java.lang.String getFilename(ExternalHTTPRequests httpReq,
java.lang.String filename)
httpReq - the requests objectfilename - the default filename
isAWebPath(),
ExternalHTTPRequests
byte[] runBinaryMacro(ExternalHTTPRequests httpReq,
java.lang.String parm)
throws HTTPServerException
httpReq - the external requests objectparm - any parameter strigs given to the macro
HTTPServerExceptionpreferBinary(),
ExternalHTTPRequests
java.lang.String runMacro(ExternalHTTPRequests httpReq,
java.lang.String parm)
throws HTTPServerException
httpReq - the external requests objectparm - any parameter strigs given to the macro
HTTPServerExceptionpreferBinary(),
ExternalHTTPRequests
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||