Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
jvxmobile:analyzer_factory [2019/03/22 10:28]
admin created
jvxmobile:analyzer_factory [2019/03/22 10:44]
admin
Line 21: Line 21:
 Set a full qualified java class and be sure that your class extends **DefaultAnalyzerFactory**. Set a full qualified java class and be sure that your class extends **DefaultAnalyzerFactory**.
  
 +To use your own analyzer, simply override the specific method, e.g.
 +
 +<code java>
 +public LoginAnalyzer createLoginAnalyzer(CommandRouter pRouter, ApplicationRequest pRequest)
 +{
 +    return MyLoginAnalyzer(pRouter,​ pRequest);
 +}
 +</​code>​
 +
 +The analyzer itself could look like this example:
 +
 +<code java>
 +public class MyLoginAnalyzer extends LoginAnalyzer
 +{
 +    protected MyLoginAnalyzer(ApplicationResource pResource, ApplicationRequest pRequest)
 +    {
 + super(pResource,​ pRequest);
 +    }
 +    ​
 +    @Override
 +    public void analyze(List<​ApplicationResponse>​ pResponse) throws Throwable
 +    {
 +        super.analyze(pResponse);​
 +       
 +        //your code here
 +    }
 +}
 +</​code>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information