Package org.apache.pulsar.client.api.url
Class URL
java.lang.Object
org.apache.pulsar.client.api.url.URL
Wrapper around
java.net.URL
to improve usability.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final URL
Creates java.net.URL with data protocol support.getContent
(Class<?>[] classes)
-
Constructor Details
-
URL
public URL(String spec) throws MalformedURLException, URISyntaxException, InstantiationException, IllegalAccessException
-
-
Method Details
-
createURL
public static final URL createURL(String spec) throws MalformedURLException, URISyntaxException, InstantiationException, IllegalAccessException Creates java.net.URL with data protocol support.- Parameters:
spec
- the input URL as String- Returns:
- java.net.URL instance
- Throws:
MalformedURLException
URISyntaxException
InstantiationException
IllegalAccessException
-
openConnection
- Throws:
IOException
-
getContent
- Throws:
IOException
-
getContent
- Throws:
IOException
-