Class ResolveURIComponent

    • Method Detail

      • resolve

        public static String resolve​(String type,
                                     String uri)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolve

        public static String resolve​(String type,
                                     String uri,
                                     boolean download)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        download - Is this uri for download purposes.
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolve

        public static String resolve​(String type,
                                     String uri,
                                     boolean download,
                                     boolean absolute)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolve

        public static String resolve​(String type,
                                     String uri,
                                     boolean download,
                                     boolean absolute,
                                     boolean internal)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        internal - true to get an internal URI.
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveImage

        public static String resolveImage​(String type,
                                          String uri,
                                          int height,
                                          int width)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        height - the height
        width - the width
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveImage

        public static String resolveImage​(String type,
                                          String uri,
                                          int height,
                                          int width,
                                          boolean download)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        height - the height
        width - the width
        download - Is this uri for download purposes.
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveImage

        public static String resolveImage​(String type,
                                          String uri,
                                          int height,
                                          int width,
                                          boolean download,
                                          boolean absolute)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        height - the height
        width - the width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveImage

        public static String resolveImage​(String type,
                                          String uri,
                                          int height,
                                          int width,
                                          boolean download,
                                          boolean absolute,
                                          boolean internal)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        height - the height
        width - the width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        internal - true to get an internal URI.
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveBoundedImage

        public static String resolveBoundedImage​(String type,
                                                 String uri,
                                                 int maxHeight,
                                                 int maxWidth)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        maxHeight - the max height
        maxWidth - the max width
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveBoundedImage

        public static String resolveBoundedImage​(String type,
                                                 String uri,
                                                 int maxHeight,
                                                 int maxWidth,
                                                 boolean download)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        maxHeight - the max height
        maxWidth - the max width
        download - Is this uri for download purposes.
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveBoundedImage

        public static String resolveBoundedImage​(String type,
                                                 String uri,
                                                 int maxHeight,
                                                 int maxWidth,
                                                 boolean download,
                                                 boolean absolute)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        maxHeight - the max height
        maxWidth - the max width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveBoundedImage

        public static String resolveBoundedImage​(String type,
                                                 String uri,
                                                 int maxHeight,
                                                 int maxWidth,
                                                 boolean download,
                                                 boolean absolute,
                                                 boolean internal)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        maxHeight - the max height
        maxWidth - the max width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        internal - true to get an internal URI.
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveCroppedImage

        public static String resolveCroppedImage​(String type,
                                                 String uri,
                                                 int cropHeight,
                                                 int cropWidth)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        cropHeight - the crop height
        cropWidth - the crop width
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveCroppedImage

        public static String resolveCroppedImage​(String type,
                                                 String uri,
                                                 int cropHeight,
                                                 int cropWidth,
                                                 boolean download)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        cropHeight - the crop height
        cropWidth - the crop width
        download - Is this uri for download purposes.
        Returns:
        The uri resolved, or the uri if there is no resolver adapted
      • resolveCroppedImage

        public static String resolveCroppedImage​(String type,
                                                 String uri,
                                                 int cropHeight,
                                                 int cropWidth,
                                                 boolean download,
                                                 boolean absolute)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        cropHeight - the crop height
        cropWidth - the crop width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
      • resolveCroppedImage

        public static String resolveCroppedImage​(String type,
                                                 String uri,
                                                 int cropHeight,
                                                 int cropWidth,
                                                 boolean download,
                                                 boolean absolute,
                                                 boolean internal)
        Resolve an uri upon the LinkResolverExtensionPoint
        Parameters:
        type - Type name (defined by the extension to use)
        uri - URI depending on the type
        cropHeight - the crop height
        cropWidth - the crop width
        download - Is this uri for download purposes.
        absolute - true to generate absolute url
        internal - true to get an internal URI.
        Returns:
        The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted