org.olat.commons.servlets
Class StaticsLegacyDispatcher

java.lang.Object
  extended by org.olat.commons.servlets.StaticsLegacyDispatcher
All Implemented Interfaces:
Dispatcher

Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users

public class StaticsLegacyDispatcher
extends java.lang.Object
implements Dispatcher

Author:
Mike Stock Comment:

This class use to be the StaticsServlet.class. It has been refactored to implement the dispatcher interface. Please note that this statics dispatcher is legacy and should not be used to deliver static resources anymore. See the deprecated comments for more information.

This servlet extracts a handlerName from the first sub-path of the request's relative path. StaticsModule provides a handler class based on that name. Handler classes are configured in jpublish-xml's config for the StaticsModule. Handlers must implement the PathHandler interface. See FilePathHandler for an example of a PathHandler which resolves files in a filesystem. A handler is called by this servlet with the remaining path as argument. The handlers know how to get to the resource themselves.


Constructor Summary
StaticsLegacyDispatcher()
          Deprecated. Default constructor.
 
Method Summary
 void execute(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String uriPrefix)
          Deprecated.  
 void setInputBufferSize(int inputBufferSize)
          Deprecated.  
 void setOutputBufferSize(int outputBufferSize)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticsLegacyDispatcher

public StaticsLegacyDispatcher()
Deprecated. 
Default constructor.

Method Detail

setInputBufferSize

public void setInputBufferSize(int inputBufferSize)
Deprecated. 

setOutputBufferSize

public void setOutputBufferSize(int outputBufferSize)
Deprecated. 

execute

public void execute(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse resp,
                    java.lang.String uriPrefix)
Deprecated. 
Specified by:
execute in interface Dispatcher
See Also:
Dispatcher.execute(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)