org.olat.core.dispatcher.mapper
Class MapperRegistry
java.lang.Object
org.olat.core.dispatcher.mapper.MapperRegistry
- All Implemented Interfaces:
- Dispatcher
public class MapperRegistry
- extends java.lang.Object
- implements Dispatcher
Description:
Allows to register so called mappers, which map a certain session-unique url
to a mapper which can dispatch requests to that url.
Initial Date: 10.06.2005
- Author:
- Felix Jost
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstanceFor
public static MapperRegistry getInstanceFor(UserSession us)
- Parameters:
us -
- Returns:
- MapperRegistry
register
public java.lang.String register(Mapper mapper)
- Parameters:
mapper -
- Returns:
- the path e.g. /olat/m/1001 without / at the end
execute
public void execute(javax.servlet.http.HttpServletRequest hreq,
javax.servlet.http.HttpServletResponse hres,
java.lang.String pathInfo)
- Specified by:
execute in interface Dispatcher
- Parameters:
hreq - hres -
deregister
public void deregister(Mapper mapper)
- remove a registered mapper if it is no longer needed.
- Parameters:
mapper -