mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-25 13:39:22 +00:00
932836f68b
* update license plugin * suppress linelength and emptylineseparator rules * fix checkstyle error Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
134 lines
4.7 KiB
XML
134 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt).
|
|
|
|
The MIT License
|
|
Copyright © 2014-2022 Ilkka Seppälä
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
|
|
-->
|
|
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
|
<description><![CDATA[My ZK Application]]></description>
|
|
<display-name>model-view-viewmodel</display-name>
|
|
<!-- ZK -->
|
|
<listener>
|
|
<description>ZK listener for session cleanup</description>
|
|
<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
|
|
</listener>
|
|
<servlet>
|
|
<description>ZK loader for ZUML pages</description>
|
|
<servlet-name>zkLoader</servlet-name>
|
|
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
|
|
<!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
|
|
It must be the same as <url-pattern> for the update engine.
|
|
-->
|
|
<init-param>
|
|
<param-name>update-uri</param-name>
|
|
<param-value>/zkau</param-value>
|
|
</init-param>
|
|
<load-on-startup>1</load-on-startup>
|
|
<!-- Must -->
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>zkLoader</servlet-name>
|
|
<url-pattern>*.zul</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet-mapping>
|
|
<servlet-name>zkLoader</servlet-name>
|
|
<url-pattern>*.zhtml</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet>
|
|
<description>The asynchronous update engine for ZK</description>
|
|
<servlet-name>auEngine</servlet-name>
|
|
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>auEngine</servlet-name>
|
|
<url-pattern>/zkau/*</url-pattern>
|
|
</servlet-mapping>
|
|
<session-config>
|
|
<session-timeout>60</session-timeout>
|
|
</session-config>
|
|
<!-- [Optional] MIME mapping -->
|
|
<mime-mapping>
|
|
<extension>doc</extension>
|
|
<mime-type>application/vnd.ms-word</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>gif</extension>
|
|
<mime-type>image/gif</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>htm</extension>
|
|
<mime-type>text/html</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>html</extension>
|
|
<mime-type>text/html</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>jpeg</extension>
|
|
<mime-type>image/jpeg</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>jpg</extension>
|
|
<mime-type>image/jpeg</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>js</extension>
|
|
<mime-type>text/javascript</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>pdf</extension>
|
|
<mime-type>application/pdf</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>png</extension>
|
|
<mime-type>image/png</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>txt</extension>
|
|
<mime-type>text/plain</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>xls</extension>
|
|
<mime-type>application/vnd.ms-excel</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>xml</extension>
|
|
<mime-type>text/xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>zhtml</extension>
|
|
<mime-type>text/html</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>zul</extension>
|
|
<mime-type>text/html</mime-type>
|
|
</mime-mapping>
|
|
<welcome-file-list>
|
|
<welcome-file>index.zul</welcome-file>
|
|
<welcome-file>index.zhtml</welcome-file>
|
|
<welcome-file>index.html</welcome-file>
|
|
<welcome-file>index.htm</welcome-file>
|
|
</welcome-file-list>
|
|
</web-app>
|