• R/O
  • HTTP
  • SSH
  • HTTPS

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

moto web application


File Info

Révision 2dd62314104889a981c474da54dd46a35c83f201
Taille 2,563 octets
l'heure 2014-02-04 10:49:38
Auteur astoria-d
Message de Log

comet session check added

Content

<?xml version='1.0' encoding='UTF-8'?>  

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"  
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"  
    version="3.0">  
  
    <display-name>hellojsf</display-name>  
    <description>JSF start guide</description>  
  
    <!-- Faces Servlet -->  
    <servlet>  
        <servlet-name>Faces Servlet</servlet-name>  
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>  
        <load-on-startup>1</load-on-startup>  
    </servlet>  
  
  
    <!-- Faces Servlet Mapping -->  
    <servlet-mapping>  
        <servlet-name>Faces Servlet</servlet-name>  
        <url-pattern>*.jsf</url-pattern>  
    </servlet-mapping>  
  

    <!-- Login filter -->
    <filter>
        <filter-name>LoginFilter</filter-name>
        <filter-class>motoSample.LoginFilter</filter-class>
    </filter>
    <!-- all files under /secured/* are filtered by login filter -->
    <filter-mapping>
        <filter-name>LoginFilter</filter-name>
        <url-pattern>/secured/*</url-pattern>
    </filter-mapping>

    <!-- block .xhtml access -->
  <security-constraint>
    <display-name>XHTML Security</display-name>
    <web-resource-collection>
      <web-resource-name>Protected Area</web-resource-name>
      <url-pattern>*.xhtml</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    </auth-constraint>
  </security-constraint>


    <!-- atmosphere servlet mapping. -->
    <servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <!-- Use it with mvn jetty:run -->
        <load-on-startup>0</load-on-startup>
        <async-supported>true</async-supported>

        <!-- atmosphere filter mapping. -->
        <init-param>
            <param-name>org.atmosphere.cpr.sessionSupport</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
            <param-value>motoSample.AtmosFilter</param-value>
        </init-param>

    </servlet>
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
    	<url-pattern>/chat/*</url-pattern>
    </servlet-mapping>

</web-app>