Package rs.baselib.util
Class UriProviderWrapper
java.lang.Object
rs.baselib.util.UriProviderWrapper
- All Implemented Interfaces:
IUrlTransformer
public class UriProviderWrapper extends java.lang.Object implements IUrlTransformer
Wraps an
IUriProvider into an IUrlTransformer.- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description UriProviderWrapper(IUriProvider provider)Constructor. -
Method Summary
Modifier and Type Method Description java.net.URLtoURL(java.lang.String url)Converts the given string to a URL.
-
Constructor Details
-
UriProviderWrapper
Constructor.- Parameters:
provider- the actual URI provider
-
-
Method Details
-
toURL
public java.net.URL toURL(java.lang.String url) throws java.net.MalformedURLExceptionConverts the given string to a URL.- Specified by:
toURLin interfaceIUrlTransformer- Parameters:
url- url- Returns:
- URL
- Throws:
java.net.MalformedURLException- when the URL cannot be created
-