Class LatestVersionAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.mobileapp.action.AbstractPostAction
-
- org.ametys.plugins.mobileapp.action.LatestVersionAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class LatestVersionAction extends AbstractPostAction
Returns the latest version compatible between client and server
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
_CLIENT_VERSION
Parameter containing the client versionprotected static int
_CURRENT_VERSION
Application current version-
Fields inherited from class org.ametys.plugins.mobileapp.action.AbstractPostAction
_jsonUtils
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description LatestVersionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
doAction(Request request, Map<String,Object> jsonParams)
Execute the action-
Methods inherited from class org.ametys.plugins.mobileapp.action.AbstractPostAction
act, getParameter, getParameters, service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_CURRENT_VERSION
protected static final int _CURRENT_VERSION
Application current version- See Also:
- Constant Field Values
-
_CLIENT_VERSION
protected static final String _CLIENT_VERSION
Parameter containing the client version- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LatestVersionAction
public LatestVersionAction()
-
-
Method Detail
-
doAction
protected Map<String,Object> doAction(Request request, Map<String,Object> jsonParams)
Description copied from class:AbstractPostAction
Execute the action- Specified by:
doAction
in classAbstractPostAction
- Parameters:
request
- the requestjsonParams
- map of parameters passed in the post body as json- Returns:
- the json map to return
-
-