Home | History | Annotate | Download | only in WEB-INF
      1 <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5">
      2 <!--
      3 Copyright 2016 Google Inc. All Rights Reserved.
      4 
      5  Licensed under the Apache License, Version 2.0 (the "License");
      6  you may not use this file except in compliance with the License.
      7  You may obtain a copy of the License at
      8 
      9        http://www.apache.org/licenses/LICENSE-2.0
     10 
     11  Unless required by applicable law or agreed to in writing, software
     12  distributed under the License is distributed on an "AS IS" BASIS,
     13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  See the License for the specific language governing permissions and
     15  limitations under the License.
     16 -->
     17 
     18 <servlet>
     19   <servlet-name>dashboard_main</servlet-name>
     20   <servlet-class>com.android.vts.servlet.DashboardMainServlet</servlet-class>
     21 </servlet>
     22 
     23 <servlet>
     24   <servlet-name>show_table</servlet-name>
     25   <servlet-class>com.android.vts.servlet.ShowTableServlet</servlet-class>
     26 </servlet>
     27 
     28 <servlet>
     29   <servlet-name>show_graph</servlet-name>
     30   <servlet-class>com.android.vts.servlet.ShowGraphServlet</servlet-class>
     31 </servlet>
     32 
     33 <servlet>
     34   <servlet-name>show_performance_digest</servlet-name>
     35   <servlet-class>com.android.vts.servlet.ShowPerformanceDigestServlet</servlet-class>
     36 </servlet>
     37 
     38 <servlet>
     39   <servlet-name>show_coverage</servlet-name>
     40   <servlet-class>com.android.vts.servlet.ShowCoverageServlet</servlet-class>
     41 </servlet>
     42 
     43 <servlet>
     44   <servlet-name>show_preferences</servlet-name>
     45   <servlet-class>com.android.vts.servlet.ShowPreferencesServlet</servlet-class>
     46 </servlet>
     47 
     48 <servlet>
     49   <servlet-name>datastore</servlet-name>
     50   <servlet-class>com.android.vts.api.DatastoreRestServlet</servlet-class>
     51 </servlet>
     52 
     53 <servlet>
     54   <servlet-name>bigtable_legacy</servlet-name>
     55   <servlet-class>com.android.vts.api.BigtableLegacyJsonServlet</servlet-class>
     56 </servlet>
     57 
     58 <servlet>
     59   <servlet-name>vts_alert_job</servlet-name>
     60   <servlet-class>com.android.vts.servlet.VtsAlertJobServlet</servlet-class>
     61 </servlet>
     62 
     63 <servlet>
     64   <servlet-name>vts_performance_job</servlet-name>
     65   <servlet-class>com.android.vts.servlet.VtsPerformanceJobServlet</servlet-class>
     66 </servlet>
     67 
     68 <servlet-mapping>
     69   <servlet-name>dashboard_main</servlet-name>
     70   <url-pattern>/</url-pattern>
     71 </servlet-mapping>
     72 
     73 <servlet-mapping>
     74   <servlet-name>show_preferences</servlet-name>
     75   <url-pattern>/show_preferences/*</url-pattern>
     76 </servlet-mapping>
     77 
     78 <servlet-mapping>
     79   <servlet-name>show_table</servlet-name>
     80   <url-pattern>/show_table/*</url-pattern>
     81 </servlet-mapping>
     82 
     83 <servlet-mapping>
     84   <servlet-name>show_graph</servlet-name>
     85   <url-pattern>/show_graph/*</url-pattern>
     86 </servlet-mapping>
     87 
     88 <servlet-mapping>
     89   <servlet-name>show_performance_digest</servlet-name>
     90   <url-pattern>/show_performance_digest/*</url-pattern>
     91 </servlet-mapping>
     92 
     93 <servlet-mapping>
     94   <servlet-name>show_coverage</servlet-name>
     95   <url-pattern>/show_coverage/*</url-pattern>
     96 </servlet-mapping>
     97 
     98 <servlet-mapping>
     99   <servlet-name>bigtable_legacy</servlet-name>
    100   <url-pattern>/api/bigtable/*</url-pattern>
    101 </servlet-mapping>
    102 
    103 <servlet-mapping>
    104   <servlet-name>datastore</servlet-name>
    105   <url-pattern>/api/datastore/*</url-pattern>
    106 </servlet-mapping>
    107 
    108 <servlet-mapping>
    109   <servlet-name>vts_alert_job</servlet-name>
    110   <url-pattern>/cron/vts_alert_job/*</url-pattern>
    111 </servlet-mapping>
    112 
    113 <servlet-mapping>
    114   <servlet-name>vts_performance_job</servlet-name>
    115   <url-pattern>/cron/vts_performance_job/*</url-pattern>
    116 </servlet-mapping>
    117 
    118 <security-constraint>
    119   <web-resource-collection>
    120     <web-resource-name>cron</web-resource-name>
    121     <url-pattern>/cron/*</url-pattern>
    122   </web-resource-collection>
    123   <auth-constraint>
    124     <role-name>admin</role-name>
    125   </auth-constraint>
    126 </security-constraint>
    127 
    128 <security-constraint>
    129   <web-resource-collection>
    130     <web-resource-name>all</web-resource-name>
    131     <url-pattern>/show_*</url-pattern>
    132   </web-resource-collection>
    133   <auth-constraint>
    134     <role-name>*</role-name>
    135   </auth-constraint>
    136 </security-constraint>
    137 </web-app>
    138