Package org.exoplatform.web.url
Class URLFactoryService
java.lang.Object
org.exoplatform.web.url.URLFactory
org.exoplatform.web.url.URLFactoryService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(URLFactoryPlugin plugin) <R,U extends PortalURL<R, U>>
UnewURL(ResourceType<R, U> resourceType, URLContext context) Creates a new url or return null if the resource type cannot be resolved to an url.
-
Constructor Details
-
URLFactoryService
public URLFactoryService()
-
-
Method Details
-
newURL
public <R,U extends PortalURL<R, U newURLU>> (ResourceType<R, U> resourceType, URLContext context) throws NullPointerExceptionDescription copied from class:URLFactoryCreates a new url or return null if the resource type cannot be resolved to an url.- Specified by:
newURLin classURLFactory- Parameters:
resourceType- the resource typecontext- the context- Returns:
- the url
- Throws:
NullPointerException- if the resource type or the context is null
-
addPlugin
-