Package org.ametys.workspaces.odfsync
Class ODFSyncAuthenticateAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.ametys.workspaces.odf.AbstractODFAuthenticateAction
-
- org.ametys.workspaces.odfsync.ODFSyncAuthenticateAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Action
public class ODFSyncAuthenticateAction extends AbstractODFAuthenticateAction
Special authentication process for incoming CDM-fr.
Incoming requests are allowed if client IP is allowed.
-
-
Field Summary
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description ODFSyncAuthenticateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
authenticate(Request request)
Method to authenticateprotected String
getConfigParameter()
Get the config parameter name contained the allowed IP adresses.protected String
getExceptionMessage()
Get the exception message if the current IP is not allowed.-
Methods inherited from class org.ametys.workspaces.odf.AbstractODFAuthenticateAction
act
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
ODFSyncAuthenticateAction
public ODFSyncAuthenticateAction()
-
-
Method Detail
-
getConfigParameter
protected String getConfigParameter()
Description copied from class:AbstractODFAuthenticateAction
Get the config parameter name contained the allowed IP adresses.- Specified by:
getConfigParameter
in classAbstractODFAuthenticateAction
- Returns:
- The parameter name
-
getExceptionMessage
protected String getExceptionMessage()
Description copied from class:AbstractODFAuthenticateAction
Get the exception message if the current IP is not allowed.- Specified by:
getExceptionMessage
in classAbstractODFAuthenticateAction
- Returns:
- The exception message
-
authenticate
protected void authenticate(Request request)
Description copied from class:AbstractODFAuthenticateAction
Method to authenticate- Overrides:
authenticate
in classAbstractODFAuthenticateAction
- Parameters:
request
- The request
-
-