org.alfresco.web.app.servlet.ajax
Class GetCommand
java.lang.Object
org.alfresco.web.app.servlet.ajax.BaseAjaxCommand
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetCommand
public GetCommand()
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
- FacesContextexpression
- The binding expressionrequest
- The requestresponse
- The response
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.