Package net.bytebuddy.dynamic.loading
Interface ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.Dispatcher
- Enclosing class:
ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction
@Proxied("java.net.URL")
protected static interface ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.Dispatcher
A dispatcher for interacting with
URL
.-
Method Summary
-
Method Details
-
make
@IsConstructor URL make(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException Creates aURL
.- Parameters:
protocol
- The URL's protocol.host
- The host on the URL.port
- The port on the URL or a negative value if no port is defined.file
- The file on the URL.handler
- The stream handler to use.- Returns:
- An appropriate URL.
- Throws:
MalformedURLException
- If the supplied URL is malformed.
-
of
@MaybeNull @IsStatic @Defaults URL of(URI uri, URLStreamHandler handler) throws MalformedURLException Resolves a URL from an URI, if possible.- Parameters:
uri
- The URI to represent.handler
- The stream handler to attach to that URL.- Returns:
- An appropriate URL.
- Throws:
MalformedURLException
- If the supplied URL is malformed.
-