|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.util.LockableImpl
com.arsdigita.cms.dispatcher.ContentCenterDispatcher
The CMS Workspace Dispatcher serves all request made within the Content Center application. This dispatcher is called by the Subsite dispatcher.
Here are the steps for a request to http://yourserver/content-center/cheese:
A client sends a request to the web server, which passes it on to the global ACS dispatcher.
The global ACS dispatcher examines the first part of the URL, notices that the Content Center application is mounted at /content-center and hands the request to the CMS Workspace dispatcher.
The CMS Workspace dispatcher determines whether a Page has been registered to the URL /cheese.
If no Page is registered to the URL /cheese,
then the CMS Workspace dispatcher hands the request to the
JSPApplicationDispatcher
.
Field Summary | |
static String |
DEFAULT_MAP_FILE
The path of the file that maps resources. |
static String |
versionId
|
Constructor Summary | |
ContentCenterDispatcher()
Constructor. |
Method Summary | |
protected void |
addResource(String url,
String className)
Map a page to a URL. |
protected void |
checkUserAccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
Verify that the user is logged in and is able to view the page. |
void |
dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
Handles requests made to the Content Center package. |
protected ResourceHandler |
getResource(String url)
Fetch a page based on the URL stub. |
static String |
getURLStubForClass(String classname)
Return the URL stub for the class name, can return null if not mapped |
protected void |
redirectToLoginPage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Redirects the client to the login page, setting the return url to the current request URI. |
static void |
releaseResource(String url)
Release the page at the specified URL. |
void |
requireTrailingSlash(String url)
Adds a URL to the list of URLs that are required to have trailing slashes. |
void |
setNotFoundDispatcher(com.arsdigita.dispatcher.Dispatcher d)
sets the default page to display if no page can be found for the URL in the page map on dispatch. |
Methods inherited from class com.arsdigita.util.LockableImpl |
isLocked, lock |
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
public static final String DEFAULT_MAP_FILE
Constructor Detail |
public ContentCenterDispatcher()
Method Detail |
public void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx) throws IOException, javax.servlet.ServletException
dispatch
in interface com.arsdigita.dispatcher.Dispatcher
request
- The HTTP requestresponse
- The HTTP responseactx
- The request context
IOException
javax.servlet.ServletException
public final void setNotFoundDispatcher(com.arsdigita.dispatcher.Dispatcher d)
public void requireTrailingSlash(String url)
public static String getURLStubForClass(String classname)
protected ResourceHandler getResource(String url) throws javax.servlet.ServletException
url
- The URL stub following the site-node URL
javax.servlet.ServletException
protected void addResource(String url, String className)
url
- The URLclassName
- The name of the ResourceHandler classpublic static void releaseResource(String url)
url
- The URLprotected void checkUserAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx) throws javax.servlet.ServletException
request
- The HTTP requestresponse
- The HTTP responseactx
- The request context
javax.servlet.ServletException
protected void redirectToLoginPage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException
javax.servlet.ServletException
- If there is an exception thrown while
trying to redirect, wrap that exception in a ServletException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |