Interface IWebURIToURLConverter

All Known Implementing Classes:
StreamOrLocalURIToURLConverter

public interface IWebURIToURLConverter
A generic converted from String URI to ISimpleURL.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    com.helger.commons.io.resource.IReadableResource
    Convert the passed URI to a resource.
    com.helger.commons.url.SimpleURL
    getAsURL(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, String sURI)
    Convert the passed URI to a URL.
    com.helger.commons.url.SimpleURL
    Convert the passed URI to a URL.
  • Method Details

    • getAsResource

      @Nonnull com.helger.commons.io.resource.IReadableResource getAsResource(@Nonnull @Nonempty String sURI)
      Convert the passed URI to a resource.
      Parameters:
      sURI - The URI to be converted. May neither be null nor empty.
      Returns:
      The created resource and never null.
    • getAsURL

      @Nonnull com.helger.commons.url.SimpleURL getAsURL(@Nonnull @Nonempty String sURI)
      Convert the passed URI to a URL.
      Parameters:
      sURI - The URI to be converted. May neither be null nor empty.
      Returns:
      The created URL.
    • getAsURL

      @Nonnull com.helger.commons.url.SimpleURL getAsURL(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull @Nonempty String sURI)
      Convert the passed URI to a URL.
      Parameters:
      aRequestScope - The request web scope to be used. Required for cookie-less handling. May not be null.
      sURI - The URI to be converted.
      Returns:
      The created URL.