R
- The Result
type.public interface Action<R extends Result> extends TypedAction<R>, HasSecured, IsSerializable
Dispatch
. It has a specific
result type which is returned if the action is successful. Your implementation should override
getServiceName()
to return a default service url. If you use a
SecurityCookie
to prevent XSRF attacks and you want this action to be secured
against such attacks (i.e. it's not meant to be an anonymous action) then you should override HasSecured.isSecured()
to
return true
.
You can usually inherit from ActionImpl
or UnsecuredActionImpl
instead.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_NAME
The URL of the service used by default.
|
Modifier and Type | Method and Description |
---|---|
String |
getServiceName()
Access the name of the service, which will be used as the URL path to access the action.
|
isSecured
static final String DEFAULT_SERVICE_NAME
String getServiceName()
Copyright © 2010–2014 Arcbees. All rights reserved.