public class ExternalAccessServlet extends BaseServlet
The servlet accepts a well formed URL that can easily be generated from a Content or Space NodeRef. The URL also specifies the JSF "outcome" to be executed which provides the correct JSF View to be displayed. The JSF "outcome" must equate to a global navigation rule or it will not be displayed. Servlet URL is of the form:
http://<server>/alfresco/navigate/<outcome>[/<workspace>/<store>/<nodeId>]
or
http://<server>/alfresco/navigate/<outcome>[/webdav/<path/to/node>]
Like most Alfresco servlets, the URL may be followed by a valid 'ticket' argument for authentication: ?ticket=1234567890
And/or also followed by the "?guest=true" argument to force guest access login for the URL.
BaseServlet.PathRefInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OUTCOME_BROWSE |
static java.lang.String |
OUTCOME_DIALOG |
static java.lang.String |
OUTCOME_DOCDETAILS |
static java.lang.String |
OUTCOME_LOGOUT |
static java.lang.String |
OUTCOME_MYALFRESCO |
static java.lang.String |
OUTCOME_SPACEDETAILS |
static java.lang.String |
OUTCOME_WIZARD |
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE
Constructor and Description |
---|
ExternalAccessServlet() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateExternalURL(java.lang.String outcome,
java.lang.String args)
Generate a URL to the External Access Servlet.
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
checkAccess, getServiceRegistry, redirectToLoginPage, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSP
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final java.lang.String OUTCOME_DOCDETAILS
public static final java.lang.String OUTCOME_SPACEDETAILS
public static final java.lang.String OUTCOME_BROWSE
public static final java.lang.String OUTCOME_MYALFRESCO
public static final java.lang.String OUTCOME_LOGOUT
public static final java.lang.String OUTCOME_DIALOG
public static final java.lang.String OUTCOME_WIZARD
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public static final java.lang.String generateExternalURL(java.lang.String outcome, java.lang.String args)
outcome
- args
- Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.