public final class URLConnections extends Object
URLConnection
.Modifier and Type | Method and Description |
---|---|
static void |
setRequestProperties(URLConnection urlConnection,
Properties properties)
Sets the specified
Properties in the provided
URLConnection . |
static InputStream |
tryOpenRedirectStream(URL url)
Returns an
InputStream to the specified url that may or may not
exist at a redirected location. |
public static void setRequestProperties(URLConnection urlConnection, Properties properties)
Properties
in the provided
URLConnection
.urlConnection
- The URLConnection
.properties
- The Properties
.public static InputStream tryOpenRedirectStream(URL url) throws IOException
InputStream
to the specified url that may or may not
exist at a redirected location.url
- The URL
.InputStream
to the specified url that may or may not
exist at a redirected location.IOException
- If an I/O error has occurred.Copyright © 2019 LibJ. All rights reserved.