|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bitmechanic.maxq.generator.TemplateCodeGenerator
public class TemplateCodeGenerator
Template based code generator.
Field Summary |
---|
Fields inherited from interface com.bitmechanic.maxq.generator.IScriptGenerator |
---|
EOL |
Constructor Summary | |
---|---|
TemplateCodeGenerator(IScriptAdapter script)
Creates new TempateCodeGenerator instance. |
Method Summary | |
---|---|
void |
close()
Called when a generator is no longer needed. |
void |
doLoad()
Called after a new script has been loaded from file. |
void |
doNew()
Called when a new script needs to be begun. |
void |
doSave(java.lang.String path,
java.lang.String name)
Notifies the generator that the script is about to be saved. |
void |
doStartRecording()
Called before any processRequest() calls. |
void |
doStopRecording()
Called after the last processResponse() call, but may be followed by another doStartRecording() to start the process over again. |
static java.lang.String |
getGeneratorDescription()
Returns brief description of the generator. |
java.lang.String[] |
getValidFileExtensions()
Returns an array of valid file extensions for the type of code generator in use. |
java.lang.String |
parseTestName()
Parses the name of the test out of the script. |
void |
processRequest(HttpRequestHeader header,
byte[] body)
|
void |
processResponse(HttpRequestHeader header,
byte[] body)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateCodeGenerator(IScriptAdapter script)
script
- the script adapter.Method Detail |
---|
public static java.lang.String getGeneratorDescription()
public java.lang.String[] getValidFileExtensions()
getValidFileExtensions
in interface IScriptGenerator
public java.lang.String parseTestName()
parseTestName
in interface IScriptGenerator
public void doStartRecording()
doStartRecording
in interface IScriptGenerator
public void doStopRecording()
doStopRecording
in interface IScriptGenerator
public void doNew()
doNew
in interface IScriptGenerator
public void doSave(java.lang.String path, java.lang.String name)
doSave
in interface IScriptGenerator
public void doLoad()
doLoad
in interface IScriptGenerator
public void close()
close
in interface IScriptGenerator
public void processRequest(HttpRequestHeader header, byte[] body) throws java.lang.Exception
processRequest
in interface ProxyServer.Observer
java.lang.Exception
public void processResponse(HttpRequestHeader header, byte[] body) throws java.lang.Exception
processResponse
in interface ProxyServer.Observer
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |