|
||||||||||
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 java.net.URLConnection |
prepareForAuthentication(java.net.URLConnection connection)
Prepares an url connection for authentication if necessary. |
static java.net.URLConnection |
prepareForSSL(java.net.URLConnection connection)
Prepares an url connection for authentication if necessary. |
static java.io.InputStream |
prepareInputStream(java.net.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 java.net.URLConnection prepareForAuthentication(java.net.URLConnection connection)
connection
- the connection to be prepared
public static java.net.URLConnection prepareForSSL(java.net.URLConnection connection)
connection
- the connection to be prepared
public static java.io.InputStream prepareInputStream(java.net.URL url, boolean acceptAnyCertificate) throws java.io.IOException
url
- url to prepareacceptAnyCertificate
- true if the certicate check should be skipped
java.io.IOException
- re-thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |