|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.dispatcher.MapDispatcher
com.arsdigita.bebop.page.BebopMapDispatcher
Common base class for a generic URL-to-Bebop-Page dispatching pattern. This class may be used directly by applications, or it may be subclassed to be coded with a specific map or to override the map lookup for certain sets of URLs.
Nested Class Summary |
Nested classes inherited from class com.arsdigita.dispatcher.MapDispatcher |
MapDispatcher.ParseConfigHandler |
Field Summary | |
static String |
versionId
|
Constructor Summary | |
BebopMapDispatcher()
Creates BebopMapDispatcher with empty URL mapped to "/" and the default presentation manager. |
Method Summary | |
void |
addPage(String url,
Page p)
Adds a new URL-page mapping to this dispatcher. |
PresentationManager |
getPresentationManager()
|
protected org.xml.sax.helpers.DefaultHandler |
newParseConfigHandler(MapDispatcher md)
Expirimental Returns a new SAX event handler specific to configuring a BebopMapDispatcher. |
void |
setMap(Map m)
Sets the page map for this dispatcher. |
void |
setNotFoundPage(Page p)
Sets the default page to display if no page can be found on dispatch for the URL in the page map. |
void |
setPresentationManager(PresentationManager pm)
Sets the presentation manager used by this dispatcher. |
Methods inherited from class com.arsdigita.dispatcher.MapDispatcher |
addPage, dispatch, getMap, preprocessRequest, readFromFile, requireTrailingSlash, setNotFoundDispatcher |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public BebopMapDispatcher()
Method Detail |
public final void setMap(Map m)
setMap
in class MapDispatcher
m
- the page map (which maps URLs to Pages)public final void addPage(String url, Page p)
url
- the URL to mapp
- the page targetpublic final void setNotFoundPage(Page p)
p
- the default pagepublic final void setPresentationManager(PresentationManager pm)
pm
- the presentation managerpublic final PresentationManager getPresentationManager()
protected org.xml.sax.helpers.DefaultHandler newParseConfigHandler(MapDispatcher md)
newParseConfigHandler
in class MapDispatcher
md
- the MapDispatcher to configure
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |