org.alfresco.web.app.servlet.ajax
Class AjaxServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.alfresco.web.app.servlet.BaseServlet
              extended by org.alfresco.web.app.servlet.ajax.AjaxServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AjaxServlet
extends BaseServlet

Servlet responsible for processing AJAX requests. The URL to the servlet should be in the form:

/alfresco/ajax/command/Bean.binding.expression

See http://wiki.alfresco.com/wiki/AJAX_Support for details.

Like most Alfresco servlets, the URL may be followed by a valid 'ticket' argument for authentication: ?ticket=1234567890

See Also:
Serialized Form

Nested Class Summary
protected static class AjaxServlet.Command
           
 
Nested classes/interfaces inherited from class org.alfresco.web.app.servlet.BaseServlet
BaseServlet.PathRefInfo
 
Field Summary
static java.lang.String AJAX_LOG_KEY
           
 
Fields inherited from class org.alfresco.web.app.servlet.BaseServlet
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE
 
Constructor Summary
AjaxServlet()
           
 
Method Summary
protected  void handleError(javax.servlet.http.HttpServletResponse response, java.lang.RuntimeException cause)
          Handles any error that occurs during the execution of the servlet
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
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
 

Field Detail

AJAX_LOG_KEY

public static final java.lang.String AJAX_LOG_KEY
See Also:
Constant Field Values
Constructor Detail

AjaxServlet

public AjaxServlet()
Method Detail

service

protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                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.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

handleError

protected void handleError(javax.servlet.http.HttpServletResponse response,
                           java.lang.RuntimeException cause)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Handles any error that occurs during the execution of the servlet

Parameters:
response - The response
cause - The cause of the error
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.