org.alfresco.web.app.servlet
Class ExternalAccessServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.alfresco.web.app.servlet.BaseServlet
org.alfresco.web.app.servlet.ExternalAccessServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ExternalAccessServlet
- extends BaseServlet
Servlet allowing external URL access to various global JSF views in the Web Client.
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.
- See Also:
- Serialized Form
Method Summary |
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)
|
Methods inherited from class org.alfresco.web.app.servlet.BaseServlet |
checkAccess, getServiceRegistry, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSP |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OUTCOME_DOCDETAILS
public static final java.lang.String OUTCOME_DOCDETAILS
- See Also:
- Constant Field Values
OUTCOME_SPACEDETAILS
public static final java.lang.String OUTCOME_SPACEDETAILS
- See Also:
- Constant Field Values
OUTCOME_BROWSE
public static final java.lang.String OUTCOME_BROWSE
- See Also:
- Constant Field Values
OUTCOME_MYALFRESCO
public static final java.lang.String OUTCOME_MYALFRESCO
- See Also:
- Constant Field Values
OUTCOME_LOGOUT
public static final java.lang.String OUTCOME_LOGOUT
- See Also:
- Constant Field Values
OUTCOME_DIALOG
public static final java.lang.String OUTCOME_DIALOG
- See Also:
- Constant Field Values
OUTCOME_WIZARD
public static final java.lang.String OUTCOME_WIZARD
- See Also:
- Constant Field Values
ExternalAccessServlet
public ExternalAccessServlet()
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
generateExternalURL
public static final java.lang.String generateExternalURL(java.lang.String outcome,
java.lang.String args)
- Generate a URL to the External Access Servlet.
Allows access to JSF views (via an "outcome" ID) from external URLs.
- Parameters:
outcome
- args
-
- Returns:
- URL
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.