|
Oracle Fusion Middleware Java API Reference for the Oracle Access Management OAuth Service 11g Release 2 Patch Set 3 (11.1.2.3) E59498-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.idaas.oauth.sdk.http.HttpUtil
public class HttpUtil
Util class to handle HTTP request and response.
Nested Class Summary
static class |
HttpUtil.OAuthClientHostnameVerifierPass through Verifier implementation class, it returns always true. |
HttpUtil() |
static HttpResponse |
doHttpRequest(java.lang.String urlStr, java.lang.String requestMethod, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> header, java.lang.String useProxy, java.lang.String proxyHost, java.lang.String proxyPort)Handle the request. |
static void |
setConnectTimeout(int timeout)Changes the connection timeout in millseconds. |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
public HttpUtil()
public static void setConnectTimeout(int timeout)
timeout - an int that specifies the connect timeout value in milliseconds
public static HttpResponse doHttpRequest(java.lang.String urlStr,
java.lang.String requestMethod,
java.lang.String body,
java.util.Map<java.lang.String,java.lang.String> header,
java.lang.String useProxy,
java.lang.String proxyHost,
java.lang.String proxyPort)
throws java.io.IOException,
javax.net.ssl.SSLException
urlStr - the URLrequestMethod - POST, GET, DELETE, PUTbody - the body content stringheader - the list of attribute name and value pairsuseProxy - true if a proxy shall be usedproxyHost - the hostname, or address, of the proxy serverproxyPort - the port number of the proxy serverjava.io.IOException - if an I/O error occurs.javax.net.ssl.SSLException - may be thrown when the url use SSL via HTTPS.
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||