Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.twitterapime.io
Class HttpResponse

    java.lang.Object
      com.twitterapime.io.HttpResponse

    public final class HttpResponse

extends java.lang.Object

This class implements a Http response.

Since:
  1.3
Version:
  1.0
Author:
  Ernandes Mourao Junior (ernandes@gmail.com)

Method Summary
`java.lang.String` | `getBodyContent()` Get the response's body content.
`int` | `getCode()` Get the response code.
`java.io.InputStream` | `getStream()` Get the response's stream.
`boolean` | `wasSuccessful()` Returns whether the request was OK.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### wasSuccessful

    public boolean wasSuccessful()

  Returns whether the request was OK.

  Returns:
    OK (true).

### getBodyContent

    public java.lang.String getBodyContent()
                                    throws java.io.IOException

  Get the response's body content.

  Returns:
    Content.
  Throws:
    `java.io.IOException` - If an I/O error occurs.

### getStream

    public java.io.InputStream getStream()

  Get the response's stream.

  Returns:
    Stream.

### getCode

    public int getCode()

  Get the response code.

  Returns:
    Code.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Twitter API ME Team. All Rights Reserved.