@Retention(value=RUNTIME) @Target(value=METHOD) public @interface ActionMethod
public void <methodName>(ActionRequest, ActionResponse)
where the method name can be freely selected.
The method declaration may contain a throws clause. Exceptions declared in the
throws clause should be of type PortletException
or
IOException
.
Checked exceptions of any other type will be caught, wrapped with a PortletException,
and rethrown.
processAction
Modifier and Type | Required Element and Description |
---|---|
String |
portletName
The portlet name for the annotated method.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
actionName
The action name.
|
PortletQName[] |
publishingEvents
The QName definitions of the events published by this method.
|
public abstract String portletName
public abstract String actionName
If an action name is specified, the bean enabler will dispatch Action requests with matching values of the reserved "javax.portlet.action" parameter to this method.
An ActionMethod with an empty action name will receive all Action requests not dispatched to other named ActionMethods.
public abstract PortletQName[] publishingEvents
EventDefinition
,
PortletQName
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.