<?xml version="1.0" encoding="UTF-8"?>
<web-app id="farsunset.aim_webapp" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>push server</display-name>
<servlet>
<servlet-name>mobile</servlet-name>
<servlet-class>com.ai.ipu.server.servlet.MobileUiServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet>
<servlet-name>mobiledata</servlet-name>
<servlet-class>com.ai.ipu.server.servlet.MobileDataServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>mobile</servlet-name>
<url-pattern>/mobile</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>mobiledata</servlet-name>
<url-pattern>/mobiledata</url-pattern>
</servlet-mapping>
<filter>
<filter-name>MobileFilter</filter-name>
<filter-class>com.ai.ipu.server.servlet.MobileFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MobileFilter</filter-name>
<url-pattern>/mobile</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MobileFilter</filter-name>
<url-pattern>/mobiledata</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>mobile</welcome-file>
</welcome-file-list>
<!-- spring config begin-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/spring-config.xml
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:/log4j.properties
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>characterFilter</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterFilter</filter-name>
<url-pattern>/mobiledata/*</url-pattern>
</filter-mapping>
</web-app>
|