|
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.HttpResponse
public class HttpResponse
Defines an object to assist am HTTP connection handler in sending a response to the client. The HttpResponse object is created as the result of a request initiated by an HTTP connection.
Method Summary
void |
close()Close the connection. |
java.lang.String |
getErrorAsString(java.lang.String encoding)Returns a String formatted error message when the status is different from 200. |
java.lang.String |
getHeader(java.lang.String name)Returns the value of a parameter in the response header using the given name. |
java.lang.String |
getResponseBodyAsString(java.lang.String encoding)Returns the body of the response as a String. |
int |
getStatus()Returns the status of the request. |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
public void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.public java.lang.String getHeader(java.lang.String name)
name - of the parameterpublic int getStatus()
In case the status is not available this method returns 404.
public java.lang.String getResponseBodyAsString(java.lang.String encoding)
throws java.io.IOException
encoding - code formatjava.io.IOException - if an I/O error occurs.
public java.lang.String getErrorAsString(java.lang.String encoding)
throws java.io.IOException
encoding - code formatjava.io.IOException - if an I/O error occurs.
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||