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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final URLCreates 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:
MalformedURLExceptionURISyntaxExceptionInstantiationExceptionIllegalAccessException
-
openConnection
- Throws:
IOException
-
getContent
- Throws:
IOException
-
getContent
- Throws:
IOException
-