AbilityAffectNext
, AbilityBlessingNext
, AbilityCursesNext
, AbilityData
, AbilityDomainNext
, AbilityGainReport
, AbilityID
, AbilityName
, AbilityNext
, AbilityPlayerNext
, AbilityPowersNext
, AbilityRaceNext
, AbilityRecipeData
, AbilityTypeNext
, AccountCreate
, AccountData
, AccountID
, AccountNext
, AccountOnline
, AccountPlayerNext
, AchievementData
, AchievementID
, AchievementNext
, AddFile
, AddRandomFile
, AddRandomFileFromDir
, AddRequestParameter
, AllQualifyData
, AllQualifyNext
, AreaChildNext
, AreaData
, AreaID
, AreaIDEncoded
, AreaItemNext
, AreaMobNext
, AreaName
, AreaNameEncoded
, AreaNext
, AreaScriptKey
, AreaScriptNext
, AreaTbl
, AreaXML
, Authenticate
, AutoAwardData
, AutoAwardID
, AutoAwardNext
, AutoTitleData
, AutoTitleID
, AutoTitleNext
, BankAccountInfo
, BankChainName
, BankChainNext
, BanListMgr
, BaseCharClassName
, BaseCharClassNext
, BehaviorData
, BehaviorID
, BehaviorNext
, CatalogCatNext
, CatalogItemNext
, CatalogMobNext
, ChannelBackLogNext
, ChannelFunction
, ChannelInfo
, ChannelNext
, CharClassData
, CharClassID
, CharClassName
, CharClassNext
, CheckAuthCode
, CheckFactionLoaded
, CheckReqParm
, ClanData
, ClanGovernmentData
, ClanGovernmentID
, ClanGovernmentNext
, ClanID
, ClanNext
, ClassRaceNext
, CoffeeTableRows
, CommandJournalInfo
, CommandJournalNext
, ComponentData
, ComponentID
, ComponentNext
, ComponentPieceData
, ComponentPieceID
, ComponentPieceNext
, ControlPanel
, CrossBaseClassAbilities
, CrossClassAbilities
, DeityData
, DeityID
, DeityNext
, DelRequestParameter
, ExitData
, ExpertiseData
, ExpertiseID
, ExpertiseNext
, FactionData
, FactionID
, FactionName
, FactionNext
, FileData
, FileInfo
, FileMgr
, FileNext
, ForumInfo
, ForumJournalNext
, HelpTopics
, HolidayData
, HolidayID
, HolidayNext
, HTTPclientIP
, HTTPstatus
, HTTPstatusInfo
, ImageVerificationImage
, INIEntry
, INIModify
, INIValue
, IsAccountSystem
, IsDisabled
, IsExpirationSystem
, ItemData
, JournalFunction
, JournalInfo
, JournalMessageNext
, JournalName
, JournalNext
, LevelNext
, LevelNumber
, LogViewer
, MobData
, MUDGrinder
, MudInfo
, MUDServerPort
, MUDServerStatus
, MUDServerVersion
, NumPlayers
, PlanarData
, PlanarID
, PlaneNext
, PlayerData
, PlayerDelete
, PlayerID
, PlayerList
, PlayerNext
, PlayerOnline
, PlayerPortrait
, PollData
, PollID
, PollNext
, PostalBoxInfo
, PostOfficeBoxNext
, PostOfficeBranchNext
, PostOfficeName
, PostOfficeNext
, PrideStat
, QuestData
, QuestMaker
, QuestMgr
, QuestNext
, RaceCatNext
, RaceClassNext
, RaceData
, RaceID
, RaceName
, RaceNext
, RandomAreaTemplates
, RebuildReferenceDocs
, RequestParameter
, RequestParametersEncoded
, ResourceMgr
, RoomData
, RoomID
, RoomName
, RoomNext
, SipletInterface
, SocialData
, SocialID
, SocialNext
, SocialTbl
, StatRejuvCharts
, SystemConfig
, SystemFunction
, SystemInfo
, ThinPlayerData
, TimsItemTable
, TriggerData
, TriggerNext
, Unsubscribe
, WebServerName
, WebServerPort
, WebServerVersion
, WebSock
, WhiteListMgr
public class StdWebMacro extends java.lang.Object implements WebMacro
idConverter
Constructor | Description |
---|---|
StdWebMacro() |
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.String |
clearWebMacros(java.lang.String s) |
|
protected java.lang.String |
clearWebMacros(java.lang.StringBuffer s) |
|
protected static java.lang.StringBuffer |
colorwebifyOnly(java.lang.StringBuffer s) |
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
protected byte[] |
getHTTPFileData(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
java.lang.String file) |
|
protected java.io.File |
grabFile(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
java.lang.String filename) |
|
protected java.lang.String |
helpHelp(java.lang.String s) |
|
protected java.lang.String |
helpHelp(java.lang.String s1,
int limit) |
|
protected java.lang.String |
htmlIncomingFilter(java.lang.String buf) |
|
protected java.lang.StringBuffer |
htmlIncomingFilter(java.lang.StringBuffer buf) |
|
protected static java.lang.String |
htmlOutgoingFilter(java.lang.String buf) |
|
protected static java.lang.StringBuffer |
htmlOutgoingFilter(java.lang.StringBuffer buf) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
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 |
L(java.lang.String str,
java.lang.String... xs) |
|
java.lang.String |
name() |
The public name of this macro
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
protected PairSVector<java.lang.String,java.lang.String> |
parseOrderedParms(java.lang.String parm,
boolean preserveCase) |
|
protected java.util.Map<java.lang.String,java.lang.String> |
parseParms(java.lang.String parm) |
|
protected java.util.Map<java.lang.String,java.lang.String> |
parseParms(java.lang.String parm,
boolean preserveCase) |
|
boolean |
preferBinary() |
Whether the runMacro or runBinaryMacro executor should be called.
|
byte[] |
runBinaryMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
java.lang.String parm,
com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp) |
This method is executed only if this macro returns true for
preferBinary().
|
java.lang.String |
runMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
java.lang.String parm,
com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp) |
This method is executed only if this macro returns false for
preferBinary().
|
protected java.lang.String |
safeIncomingfilter(java.lang.String buf) |
|
protected static java.lang.String |
webify(java.lang.String s) |
|
protected static java.lang.StringBuffer |
webify(java.lang.StringBuffer s) |
public java.lang.String ID()
CMObject
public java.lang.String name()
WebMacro
name
in interface CMObject
name
in interface WebMacro
Environmental.Name()
public boolean isAWebPath()
WebMacro
isAWebPath
in interface WebMacro
public boolean preferBinary()
WebMacro
preferBinary
in interface WebMacro
WebMacro.runBinaryMacro(HTTPRequest, String, HTTPResponse)
,
WebMacro.runMacro(HTTPRequest, String, HTTPResponse)
public boolean isAdminMacro()
WebMacro
isAdminMacro
in interface WebMacro
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public CMObject copyOf()
CMObject
public byte[] runBinaryMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.lang.String parm, com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp) throws HTTPServerException
WebMacro
runBinaryMacro
in interface WebMacro
httpReq
- the external requests objectparm
- any parameter strings given to the macrohttpResp
- the response, with headersHTTPServerException
- a http error to pass to the userWebMacro.preferBinary()
,
HTTPRequest
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) throws HTTPServerException
WebMacro
runMacro
in interface WebMacro
httpReq
- the external requests objectparm
- any parameter strings given to the macrohttpResp
- the response, with headersHTTPServerException
- a http error to pass to the userWebMacro.preferBinary()
,
HTTPRequest
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
protected static java.lang.StringBuffer colorwebifyOnly(java.lang.StringBuffer s)
protected static java.lang.String webify(java.lang.String s)
protected static java.lang.StringBuffer webify(java.lang.StringBuffer s)
protected java.lang.String clearWebMacros(java.lang.String s)
protected java.lang.String clearWebMacros(java.lang.StringBuffer s)
protected java.lang.String helpHelp(java.lang.String s)
protected java.lang.String helpHelp(java.lang.String s1, int limit)
protected PairSVector<java.lang.String,java.lang.String> parseOrderedParms(java.lang.String parm, boolean preserveCase)
protected java.lang.String safeIncomingfilter(java.lang.String buf)
protected java.lang.String htmlIncomingFilter(java.lang.String buf)
protected java.lang.StringBuffer htmlIncomingFilter(java.lang.StringBuffer buf)
protected static java.lang.String htmlOutgoingFilter(java.lang.String buf)
protected static java.lang.StringBuffer htmlOutgoingFilter(java.lang.StringBuffer buf)
protected byte[] getHTTPFileData(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.lang.String file) throws com.planet_ink.coffee_web.http.HTTPException
com.planet_ink.coffee_web.http.HTTPException
protected java.io.File grabFile(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.lang.String filename)
protected java.util.Map<java.lang.String,java.lang.String> parseParms(java.lang.String parm)
protected java.util.Map<java.lang.String,java.lang.String> parseParms(java.lang.String parm, boolean preserveCase)
public java.lang.String L(java.lang.String str, java.lang.String... xs)