...
This servlet performs HTTP tests using Reflection API and sends reports to the HTTP test runner which is a standalone Java application.
It uses the Spring config file to register HTTP test beans. uPortal 3 registers this servlet and its mappings in the web.xml.
Code Block | ||||
---|---|---|---|---|
| ||||
<servlet> <servlet-name>TestServlet</servlet-name> <display-name>Test servlet</display-name> <servlet-class>org.jasig.portal.servlet.TestServlet</servlet-class> <init-param> <param-name>contextFileName</param-name> <param-value>test_servlet_beans.xml</param-value> </init-param> </servlet> ... <!-- uPortal test services --> <servlet-mapping> <servlet-name>TestServlet</servlet-name> <url-pattern>/TestServlet/*</url-pattern> </servlet-mapping> |
Where contextFileName is the URI to the beans Spring configuration file.
In the example above test beans are defined in the file test_servlet_beans.xml located in the same package:
...