org.alfresco.web.app.servlet.ajax
Interface AjaxCommand

All Known Implementing Classes:
BaseAjaxCommand, GetCommand, InvokeCommand

public interface AjaxCommand

Interface for all Ajax commands executed by this servlet. The method is responsible for invoking the underlying managed bean and dealing with the response.


Method Summary
 void execute(javax.faces.context.FacesContext facesContext, java.lang.String expression, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invokes the relevant method on the bean represented by the given expression.
 

Method Detail

execute

void execute(javax.faces.context.FacesContext facesContext,
             java.lang.String expression,
             javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Invokes the relevant method on the bean represented by the given expression. Parameters required to call the method can be retrieved from the request. Currently the content type of the response will always be text/xml, in the future sublcasses may provide a mechanism to allow the content type to be set dynamically.

Parameters:
facesContext - FacesContext
expression - The binding expression
request - The request
response - The response
Throws:
javax.servlet.ServletException
java.io.IOException


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