|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ops4j.net.URLUtils
public class URLUtils
Url related utility methods.
| Method Summary | |
|---|---|
static URLConnection |
prepareForAuthentication(URLConnection connection)
Prepares an url connection for authentication if necessary. |
static URLConnection |
prepareForSSL(URLConnection connection)
Prepares an url connection for authentication if necessary. |
static InputStream |
prepareInputStream(URL url,
boolean acceptAnyCertificate)
Prepare url for authentication and ssl if necessary and returns the input stream from the url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static URLConnection prepareForAuthentication(URLConnection connection)
connection - the connection to be prepared
public static URLConnection prepareForSSL(URLConnection connection)
connection - the connection to be prepared
public static InputStream prepareInputStream(URL url,
boolean acceptAnyCertificate)
throws IOException
url - url to prepareacceptAnyCertificate - true if the certicate check should be skipped
IOException - re-thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||