Changeset 21f64c62c22366268c0d82dd4486a2718d7611de

Show
Ignore:
Timestamp:
09/22/07 15:19:34 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1190467174 +0200
git-parent:

[5a73c5c6c6be071f8e9267535ca39719136f5e64]

git-author:
Christopher Jung <bktheg@web.de> 1187729577 +0200
Message:

Defaultservlet entfernt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/framework/pipeline/DefaultServletRequestFilter.java

    r5a73c5c r21f64c6  
    3636import net.driftingsouls.ds2.server.framework.BasicContext; 
    3737import net.driftingsouls.ds2.server.framework.Common; 
     38import net.driftingsouls.ds2.server.framework.Configuration; 
    3839import net.driftingsouls.ds2.server.framework.Context; 
    3940import net.driftingsouls.ds2.server.framework.ContextMap; 
     
    126127        public void init(FilterConfig filterConfig) throws ServletException { 
    127128                context = filterConfig.getServletContext(); 
     129                 
     130                // Pipeline lesen 
     131                LOG.info("Reading "+Configuration.getSetting("configdir")+"pipeline.xml"); 
     132                try { 
     133                        PipelineConfig.readConfiguration(); 
     134                } 
     135                catch( Exception e ) { 
     136                        LOG.fatal(e, e); 
     137                        throw new ServletException(e); 
     138                } 
    128139        } 
    129140} 
  • web/WEB-INF/web.sample.xml

    r9ee106f r21f64c6  
    3939        </context-param> 
    4040 
     41        <filter> 
     42                <filter-name>DSRequestFilter</filter-name> 
     43                <filter-class>net.driftingsouls.ds2.server.framework.pipeline.DefaultServletRequestFilter</filter-class> 
     44        </filter> 
     45         
     46        <filter-mapping> 
     47                <filter-name>DSRequestFilter</filter-name> 
     48                <url-pattern>/*</url-pattern> 
     49        </filter-mapping>   
     50         
    4151        <listener> 
    42                 <listener-class>net.driftingsouls.ds2.server.framework.pipeline.DefaultServletRequestListener</listener-class> 
     52                <listener-class>net.driftingsouls.ds2.server.framework.DefaultServletContextListener</listener-class> 
    4353        </listener> 
    44  
    45         <listener> 
    46                 <listener-class>net.driftingsouls.ds2.server.framework.pipeline.DefaultServletContextListener</listener-class> 
    47         </listener> 
    48  
    49         <servlet> 
    50                 <description>Main DS Servlet</description> 
    51                 <servlet-name>ds</servlet-name> 
    52                 <description> 
    53                         Main DS Servlet 
    54                 </description> 
    55                 <servlet-class>net.driftingsouls.ds2.server.framework.DriftingSoulsServlet</servlet-class> 
    56                 <!-- Load this servlet at server startup time --> 
    57                 <load-on-startup>1</load-on-startup> 
    58         </servlet> 
    59          
    60         <servlet-mapping> 
    61                 <servlet-name>ds</servlet-name> 
    62                 <url-pattern>/</url-pattern> 
    63         </servlet-mapping> 
    6454</web-app>