Documentation

Trace:

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
jvxmobile:analyzer_factory [2019/03/22 10:44]
admin
jvxmobile:analyzer_factory [2019/03/22 10:48]
admin
Line 18: Line 18:
  
 The project uses the DefaultAnalyzerFactory but it's possible to use your own factory. To change the default factory, simply set the init parameter in your deployment descriptor: **analyzerfactory** The project uses the DefaultAnalyzerFactory but it's possible to use your own factory. To change the default factory, simply set the init parameter in your deployment descriptor: **analyzerfactory**
 +
 +<code xml>
 +<​servlet>  ​
 +  <​servlet-name>​MobileServlet</​servlet-name>  ​
 +  <​servlet-class>​com.sibvisions.rad.server.http.rest.ServerServlet</​servlet-class>​
 +  ​
 +  <​init-param>​
 +    <!-- Application class name -->
 +    <​param-name>​org.restlet.application</​param-name>​
 +    <​param-value>​com.sibvisions.rad.server.http.rest.ApplicationAdapter</​param-value>​
 +  </​init-param>​
 +  ​
 +  <​init-param>​
 +    <​param-name>​session-timeout</​param-name>​
 +    <​param-value>​10</​param-value>​
 +  </​init-param>​
 +  ​
 +  <​init-param>​
 +    <​param-name>​analyzerfactory</​param-name>​
 +    <​param-value>​com.sibvisions.demo.MyAnalyzerFactory</​param-value>​
 +  </​init-param>​
 +
 +</​servlet>  ​
 +
 +<​servlet-mapping>  ​
 +  <​servlet-name>​MobileServlet</​servlet-name>  ​
 +  <​url-pattern>/​services/​mobile/​*</​url-pattern>  ​
 +</​servlet-mapping> ​
 +</​code>​
  
 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**.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information