Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jvxmobile:analyzer_factory [2019/03/22 10:44] admin |
jvxmobile:analyzer_factory [2019/03/22 10:49] (current) 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 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> | ||
+ | |||
+ | In your own analyzer, simply override the specific method, e.g. | ||
<code java> | <code java> |