Package com.helger.photon.app.url
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 TypeMethodDescriptioncom.helger.commons.io.resource.IReadableResource
getAsResource
(String sURI) Convert the passed URI to a resource.com.helger.commons.url.SimpleURL
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 benull
nor empty.- Returns:
- The created resource and never null.
-
getAsURL
Convert the passed URI to a URL.- Parameters:
sURI
- The URI to be converted. May neither benull
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 benull
.sURI
- The URI to be converted.- Returns:
- The created URL.
-