Skip navigation.

MobileAware Interaction Server Administration Guide

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Appendix B - web.xml Sample File

The web.xml file is found in the /WEB-INF directory of each web application folder.

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

Standard web deployment descriptor.

<filter>

<filter-name>mobilityFilter</filter-name>

<display-name>System Test Filter</display-name>

<description>System Test Filter</description>

User-configured filter-name, display-name and description for the instance of the filter.

<filter-class>com.mobileaware.mcp.MobilityFilter</filter-class>

The filter-class must be configured as shown.

<init-param>

<param-name>propertiesname</param-name>

<param-value>/test.properties</param-value>

</init-param>

(Optional) propertiesname. Defaults to "/mis.properties". Defines where the MobileAware Interaction Server will look for properties in the classpath of the webapp.

<init-param>

<param-name>namespace</param-name>

<param-value>com.mobileaware.mcp</param-value>

</init-param>

</filter>

(Optional) namespace. Defaults to "com.mobileaware.mcp". This is pre-pended to all session variables and servlet context variables used by the MobileAware Interaction Server in the webapp.

<filter-mapping>

<filter-name>mobilityFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

Name of filter as specified above.


Path of request to be handled by the filter.

<servlet>

<servlet-name>DiagnosticsServlet</servlet-name>

<servlet-class>

com.mobileaware.diagnostics.http.server.DiagnosticsServlet

</servlet-class>

</servlet>

Configuration for diagnostic servlet.

<servlet>

<servlet-name>GUIRequestHandler</servlet-name>

<servlet-class>

com.mobileaware.MIS.GUI.GUIRequestHandler

</servlet-class>

</servlet>

Configuration for the Administration Console servlet.

<servlet-mapping>

<servlet-name>DiagnosticsServlet</servlet-name>

<url-pattern>/Diagnostics/*</url-pattern>

</servlet-mapping>

Diagnostics mapping, to be used from TextUI and DiagnosticsConsole.

<servlet-mapping>

<servlet-name>DiagnosticsServlet</servlet-name>

<url-pattern>/private/Diagnostics/*</url-pattern>

</servlet-mapping>

Alternative version of Diagnostics mapping, protected by Application Server security.

<servlet-mapping>

<servlet-name>GUIRequestHandler</servlet-name>

<url-pattern>/GUIRequestHandler/*</url-pattern>

</servlet-mapping>

Administration Console mapping. To be used from the Administration Console.

<security-constraint>

<web-resource-collection>

<web-resource-name>SecureURLS</web-resource-name>

<description>Private</description>

<url-pattern>/private/*</url-pattern>

<http-method>POST</http-method>

<http-method>GET</http-method>

</web-resource-collection>

<auth-constraint>

<description></description>

<role-name>Acme</role-name>

</auth-constraint>

<user-data-constraint>

<description>SSL not required</description>

<transport-guarantee>NONE</transport-guarantee>

</user-data-constraint>

</security-constraint>

<login-config>

<auth-method>BASIC</auth-method>

</login-config>

</web-app>

Example of a Security constraint used with Diagnostics


 

 

Back to Top Previous Next