@Override
public Action[] getActions() {
List<Action> actions = new ArrayList<Action>();
// HTML greeter action
Action greeterHTMLAction = new GreeterHTMLAction();
greeterHTMLAction.setIdentifier("greeter.html");
greeterHTMLAction.setPath("greeting");
greeterHTMLAction.setModule(this);
greeterHTMLAction.setSite(getSite());
actions.add(greeterHTMLAction);
// XML greeter action
Action greeterXMLAction = new GreeterXMLAction();
greeterXMLAction.setIdentifier("greeter.xml");
greeterXMLAction.setPath("greeting");
greeterXMLAction.setModule(this);
greeterXMLAction.setSite(getSite());
actions.add(greeterXMLAction);
// XML greeter action
Action greeterJSONAction = new GreeterJSONAction();
greeterJSONAction.setIdentifier("greeter.json");
greeterJSONAction.setPath("greeting");
greeterJSONAction.setModule(this);
greeterJSONAction.setSite(getSite());
actions.add(greeterJSONAction);
return actions.toArray(new Action[actions.size()]);
}