Package org.exoplatform.web.url
Class URLFactory
java.lang.Object
org.exoplatform.web.url.URLFactory
- Direct Known Subclasses:
URLFactoryService
A factory for urls.
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <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
-
URLFactory
public URLFactory()
-
-
Method Details
-
newURL
public abstract <R,U extends PortalURL<R, U newURLU>> (ResourceType<R, U> resourceType, URLContext context) throws NullPointerExceptionCreates a new url or return null if the resource type cannot be resolved to an url.- Parameters:
resourceType- the resource typecontext- the context- Returns:
- the url
- Throws:
NullPointerException- if the resource type or the context is null
-