org.olat.commons.servlets.pathhandlers
Interface PathHandler

All Known Implementing Classes:
ContextHelpFilePathHandler, FilePathHandler, QTIEditorStaticsHandler, QTIStaticsHandler

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

public interface PathHandler

Initial Date: 16.06.2003

Author:
Mike Stock Comment:

Method Summary
 java.io.InputStream getInputStream(javax.servlet.http.HttpServletRequest request, ResourceDescriptor rd)
          Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users
 ResourceDescriptor getResourceDescriptor(javax.servlet.http.HttpServletRequest request, java.lang.String relPath)
          Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users
 void init(com.anthonyeden.lib.config.Configuration config)
          Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users
 

Method Detail

init

void init(com.anthonyeden.lib.config.Configuration config)
Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users

Called upon initialization of OLAT.

Parameters:
config -

getResourceDescriptor

ResourceDescriptor getResourceDescriptor(javax.servlet.http.HttpServletRequest request,
                                         java.lang.String relPath)
Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users

Get a resource descriptor for the selected path.

Parameters:
request -
relPath -
Returns:
A resource descriptor, describing the resource, or null if the handler decides it will not serve the resource. in the latter case the servlet will then send a HttpServletResponse.SC_NOT_FOUND (404) error.

getInputStream

java.io.InputStream getInputStream(javax.servlet.http.HttpServletRequest request,
                                   ResourceDescriptor rd)
Deprecated. Please use GlobalMapperRegistry if you need to provide an url for e.g. static resources which are shared by all users

Get an input stream for the given resource descriptor.

Parameters:
request -
rd -
Returns:
InputStream.