Package org.ametys.workspaces.query
Class GetQueryParametersAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.workspaces.query.GetQueryParametersAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetQueryParametersAction extends ServiceableAction
Get query parameters from query
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GetQueryParametersAction.InternalEncoder
Helper defining methods used to partially encode the query string of internal (cocoon) wrapped requests.
-
Field Summary
Fields Modifier and Type Field Description private CurrentUserProvider
_currentUserProvide
private JSONUtils
_jsonUtils
The Json utilsprivate AmetysObjectResolver
_resolver
private static String
_XSLT_BASE_LOCATION
-
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 GetQueryParametersAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected String
getXsltLocation(SourceResolver resolver, String xslt)
Get the XSLT location.void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_XSLT_BASE_LOCATION
private static final String _XSLT_BASE_LOCATION
- See Also:
- Constant Field Values
-
_resolver
private AmetysObjectResolver _resolver
-
_jsonUtils
private JSONUtils _jsonUtils
The Json utils
-
_currentUserProvide
private CurrentUserProvider _currentUserProvide
-
-
Constructor Detail
-
GetQueryParametersAction
public GetQueryParametersAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
getXsltLocation
protected String getXsltLocation(SourceResolver resolver, String xslt) throws IOException
Get the XSLT location.- Parameters:
resolver
- the source resolver.xslt
- the requested xslt.- Returns:
- the XSLT file location.
- Throws:
IOException
- if an error occurs resolving the XSLT.
-
-