| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.rest.client.RestResult
public class RestResult
A client side class which encapsulates the result of a Rest call. To get the underlying java.net.HttpURLConnection object, call getConnection().
HttpURLConnection| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Method Summary | |
|---|---|
|  void | close()Closes the result. | 
|  java.net.HttpURLConnection | getConnection()Returns the underlying HttpURLConnection object | 
|  java.io.InputStream | getInputStream()Returns the input stream from the response | 
|  int | getResponseCode()Returns the http response code for the request | 
|  java.lang.String | getResponseMessage()Returns the http response message for the request. | 
|  RestSession | getSession()Returns the RestSession object this RestResult is associated with | 
|  java.lang.String | readInputStream()Convenience method for reading the input stream in its entirety. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Method Detail | 
|---|
public RestSession getSession()
public java.net.HttpURLConnection getConnection()
public java.lang.String readInputStream()
                                 throws java.io.IOException
java.io.IOException - if an error occurs reading the input stream.
public int getResponseCode()
                    throws java.io.IOException
java.io.IOException - if the underlying getResponseCode() call throws an IOException
public java.lang.String getResponseMessage()
                                    throws java.io.IOException
java.io.IOException - if the underlying getResponseMessage() call throws an IOException
public java.io.InputStream getInputStream()
                                   throws java.io.IOException
java.io.IOException - if the underlying getInputStream() call throws an IOExceptionpublic void close()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||