Package org.ametys.web.editor
Class RemoteURIResolver
- java.lang.Object
-
- org.ametys.cms.remote.RemoteURIResolver
-
- org.ametys.web.editor.RemoteURIResolver
-
- All Implemented Interfaces:
URIResolver
,Contextualizable
,Serviceable
public class RemoteURIResolver extends RemoteURIResolver
URIResolver
for type "remote".
This resolver is a proxy to another type to be called from remote url. The resolved uri are necessary absolutes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.remote.RemoteURIResolver
RemoteURIResolver.ProxiedUri
-
-
Field Summary
Fields Modifier and Type Field Description private URIPrefixHandler
_prefixHandler
private RenderingContextHandler
_renderingContexthandler
private SiteManager
_siteManager
-
Fields inherited from class org.ametys.cms.remote.RemoteURIResolver
_context, _uriResolverEP
-
-
Constructor Summary
Constructors Constructor Description RemoteURIResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAbsoluteRemoteUriPrefix()
Get the absolute URI prefixprotected String
getUriPrefix(Request request)
Get the URI prefix (non absolute) for resolved urivoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.remote.RemoteURIResolver
checkLink, contextualize, getAbsoluteRemoteUri, getLabel, getProxiedUri, getType, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64
-
-
-
-
Field Detail
-
_renderingContexthandler
private RenderingContextHandler _renderingContexthandler
-
_siteManager
private SiteManager _siteManager
-
_prefixHandler
private URIPrefixHandler _prefixHandler
-
-
Constructor Detail
-
RemoteURIResolver
public RemoteURIResolver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classRemoteURIResolver
- Throws:
ServiceException
-
getUriPrefix
protected String getUriPrefix(Request request)
Description copied from class:RemoteURIResolver
Get the URI prefix (non absolute) for resolved uri- Overrides:
getUriPrefix
in classRemoteURIResolver
- Parameters:
request
- The request- Returns:
- the URI prefix
-
getAbsoluteRemoteUriPrefix
protected String getAbsoluteRemoteUriPrefix()
Description copied from class:RemoteURIResolver
Get the absolute URI prefix- Overrides:
getAbsoluteRemoteUriPrefix
in classRemoteURIResolver
- Returns:
- the URI prefix
-
-