|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.webscarab.plugin.scripted.Scripted
public class Scripted
Constructor Summary | |
---|---|
Scripted(Framework framework)
Creates a new instance of Scripted |
Method Summary | |
---|---|
void |
analyse(ConversationID id,
Request request,
Response response,
java.lang.String origin)
|
void |
flush()
called to instruct the plugin to flush any memory-only state to the store. |
java.lang.String |
getPluginName()
The plugin name |
java.lang.String |
getScript()
|
java.lang.Object |
getScriptableObject()
|
java.io.File |
getScriptFile()
|
Hook[] |
getScriptingHooks()
|
java.lang.String |
getScriptLanguage()
|
java.lang.String |
getStatus()
called to determine what the current status of the plugin is |
boolean |
isBusy()
called to test whether the plugin is able to be stopped |
boolean |
isModified()
called to determine whether the data stored within the plugin has been modified and should be saved |
boolean |
isRunning()
|
void |
loadScript(java.io.File file)
|
void |
requestError(Request request,
java.io.IOException ioe)
|
void |
responseReceived(Response response)
|
void |
run()
starts the plugin running |
void |
runScript()
|
void |
saveScript(java.io.File file)
|
void |
setErr(java.io.PrintStream err)
|
void |
setOut(java.io.PrintStream out)
|
void |
setScript(java.lang.String language,
java.lang.String script)
|
void |
setSession(java.lang.String type,
java.lang.Object store,
java.lang.String session)
informs the plugin that the Session has changed |
void |
setUI(ScriptedUI ui)
|
boolean |
stop()
called to suspend or stop the plugin |
void |
stopScript()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scripted(Framework framework)
Method Detail |
---|
public void setUI(ScriptedUI ui)
public void setOut(java.io.PrintStream out)
public void setErr(java.io.PrintStream err)
public void loadScript(java.io.File file) throws java.io.IOException
java.io.IOException
public void saveScript(java.io.File file) throws java.io.IOException
java.io.IOException
public java.io.File getScriptFile()
public java.lang.String getScriptLanguage()
public java.lang.String getScript()
public void setScript(java.lang.String language, java.lang.String script)
public void analyse(ConversationID id, Request request, Response response, java.lang.String origin)
analyse
in interface Plugin
public void flush() throws StoreException
Plugin
flush
in interface Plugin
StoreException
- if there is any problem saving the session datapublic java.lang.String getPluginName()
Plugin
getPluginName
in interface Plugin
public java.lang.String getStatus()
Plugin
getStatus
in interface Plugin
public boolean isBusy()
Plugin
isBusy
in interface Plugin
public boolean isModified()
Plugin
isModified
in interface Plugin
public boolean isRunning()
isRunning
in interface Plugin
public void run()
Plugin
run
in interface java.lang.Runnable
run
in interface Plugin
public void requestError(Request request, java.io.IOException ioe)
requestError
in interface ConversationHandler
public void responseReceived(Response response)
responseReceived
in interface ConversationHandler
public void setSession(java.lang.String type, java.lang.Object store, java.lang.String session) throws StoreException
Plugin
setSession
in interface Plugin
StoreException
public boolean stop()
Plugin
stop
in interface Plugin
public void stopScript()
public void runScript()
public java.lang.Object getScriptableObject()
getScriptableObject
in interface Plugin
public Hook[] getScriptingHooks()
getScriptingHooks
in interface Plugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |