Class URLFactory

java.lang.Object
org.exoplatform.web.url.URLFactory
Direct Known Subclasses:
URLFactoryService

public abstract class URLFactory extends Object
A factory for urls.
  • Constructor Details

    • URLFactory

      public URLFactory()
  • Method Details

    • newURL

      public abstract <R, U extends PortalURL<R, U>> U newURL(ResourceType<R,U> resourceType, URLContext context) throws NullPointerException
      Creates a new url or return null if the resource type cannot be resolved to an url.
      Parameters:
      resourceType - the resource type
      context - the context
      Returns:
      the url
      Throws:
      NullPointerException - if the resource type or the context is null