com.dyuproject.util.http
Interface HttpConnector.Response

Enclosing interface:
HttpConnector

public static interface HttpConnector.Response

The http response which can be used to obtain the http status, headers and the content via input stream.


Method Summary
 void close()
          Closes/destroys this object after reading data.
 String getHeader(String name)
          Gets the response header value from the given header name.
 InputStream getInputStream()
          Gets the response content via InputStream.
 int getStatus()
          Gets the response http status.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Gets the response content via InputStream.

Throws:
IOException

getHeader

String getHeader(String name)
Gets the response header value from the given header name.


getStatus

int getStatus()
Gets the response http status.


close

void close()
           throws IOException
Closes/destroys this object after reading data.

Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.