Package org.ametys.web.service
Class GetServiceWrapperContextAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.ametys.web.service.GetServiceWrapperContextAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
This action export the wrapping XSLT URI for a service.
Service negociation will be performed with the given URI: if service.xsl is asked, service-[serviceId].xsl will be looked up first. This action needs the parameter
Service negociation will be performed with the given URI: if service.xsl is asked, service-[serviceId].xsl will be looked up first. This action needs the parameter
path
pointing the default path to the XSL.-
Field Summary
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getWrapperURIFromSources
(Request request, String uri) Get wrapper URI from sourcesact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) getSourceURIs
(Request request, String requestedURI) Get the source URI for wrapped serviceprotected String
getWrapperURI
(Request request, String uri) Compute the wrapping URI for the current service.void
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_srcResolver
The source resolver
-
-
Constructor Details
-
GetServiceWrapperContextAction
public GetServiceWrapperContextAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map<String,String> act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
getWrapperURI
Compute the wrapping URI for the current service.- Parameters:
request
- the current Request.uri
- the default uri.- Returns:
- the wrapper XSLT URI.
- Throws:
IOException
- if an error occurs while resolving Sources.
-
_getWrapperURIFromSources
Get wrapper URI from sources- Parameters:
request
- the current Request.uri
- the default uri.- Returns:
- the wrapper XSLT URI.
- Throws:
IOException
- if an error occurs while resolving Sources.
-
getSourceURIs
Get the source URI for wrapped service- Parameters:
request
- The requestrequestedURI
- The requested URI- Returns:
- the wrapped URI
-