com.ning.http.client
Class HttpResponseStatus

java.lang.Object
  extended by com.ning.http.client.HttpContent
      extended by com.ning.http.client.HttpResponseStatus
Direct Known Subclasses:
ApacheResponseStatus, ResponseStatus, ResponseStatus

public abstract class HttpResponseStatus
extends HttpContent

A class that represent the HTTP response' status line (code + text)


Field Summary
 
Fields inherited from class com.ning.http.client.HttpContent
provider, uri
 
Constructor Summary
HttpResponseStatus(URI uri, AsyncHttpProvider provider)
           
 
Method Summary
abstract  int getProtocolMajorVersion()
          Protocol major version.
abstract  int getProtocolMinorVersion()
          Protocol minor version.
abstract  String getProtocolName()
          Protocol name from status line.
abstract  String getProtocolText()
          Full protocol name + version
abstract  int getStatusCode()
          Return the response status code
abstract  String getStatusText()
          Return the response status text
 
Methods inherited from class com.ning.http.client.HttpContent
getUrl, provider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseStatus

public HttpResponseStatus(URI uri,
                          AsyncHttpProvider provider)
Method Detail

getStatusCode

public abstract int getStatusCode()
Return the response status code

Returns:
the response status code

getStatusText

public abstract String getStatusText()
Return the response status text

Returns:
the response status text

getProtocolName

public abstract String getProtocolName()
Protocol name from status line.

Returns:
Protocol name.

getProtocolMajorVersion

public abstract int getProtocolMajorVersion()
Protocol major version.

Returns:
Major version.

getProtocolMinorVersion

public abstract int getProtocolMinorVersion()
Protocol minor version.

Returns:
Minor version.

getProtocolText

public abstract String getProtocolText()
Full protocol name + version

Returns:
protocol name + version


Copyright © 2011. All Rights Reserved.