/**
 * 
 */
package org.ajax4jsf.gwt.jsf;

import com.google.gwt.user.server.rpc.RPCRequest;

import javax.faces.event.FacesListener;

/**
 * General listener for GWT event handling.  Restricted to only the original GWTFacesService interface.
 * @author shura
 */
public interface GwtListener extends FacesListener {

    /**
     * Can this listener handle the given call?
     */
    public boolean canHandleRequest (RPCRequest request);

    /**
     * Process the given call.
     * @return the encoded GWT response payload
     */
    public String processRequest(RPCRequest request);
	
}
