public class URLs extends Object
Constructor and Description |
---|
URLs() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
doWithCustomURLHandlerFactory(URLStreamHandlerFactory customFactory,
Callable<T> block)
Executes the given block with the given
URLStreamHandlerFactory ,
whatever is happening with system properties. |
static <T> T |
doWithMavenURLHandlerFactory(Callable<T> block)
Executes the given block ensuring that the Maven URL handler is properly registered,
whatever is happening with system properties.
|
public static <T> T doWithMavenURLHandlerFactory(Callable<T> block) throws Exception
Exception
public static <T> T doWithCustomURLHandlerFactory(URLStreamHandlerFactory customFactory, Callable<T> block) throws Exception
URLStreamHandlerFactory
,
whatever is happening with system properties.Exception
Copyright © 2011–2016 Red Hat. All rights reserved.