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

java.lang.Object
  extended by org.alfresco.web.app.servlet.ajax.BaseAjaxCommand
      extended by org.alfresco.web.app.servlet.ajax.GetCommand
All Implemented Interfaces:
AjaxCommand

public class GetCommand
extends BaseAjaxCommand

Command that executes the given value binding expression.

This command is intended to be used for calling existing managed bean methods. The result of the value binding is added to the response as is i.e. by calling toString(). The content type of the response is always text/html.


Field Summary
 
Fields inherited from class org.alfresco.web.app.servlet.ajax.BaseAjaxCommand
logger
 
Constructor Summary
GetCommand()
           
 
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.
 
Methods inherited from class org.alfresco.web.app.servlet.ajax.BaseAjaxCommand
makeBindingExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCommand

public GetCommand()
Method Detail

execute

public 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
Description copied from interface: AjaxCommand
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.