com.ning.http.client.providers.netty
Class ResponseStatus

java.lang.Object
  extended by com.ning.http.client.HttpContent
      extended by com.ning.http.client.HttpResponseStatus
          extended by com.ning.http.client.providers.netty.ResponseStatus

public class ResponseStatus
extends HttpResponseStatus

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
ResponseStatus(URI uri, org.jboss.netty.handler.codec.http.HttpResponse response, AsyncHttpProvider provider)
           
 
Method Summary
 int getProtocolMajorVersion()
          Protocol major version.
 int getProtocolMinorVersion()
          Protocol minor version.
 String getProtocolName()
          Protocol name from status line.
 String getProtocolText()
          Full protocol name + version
 int getStatusCode()
          Return the response status code
 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

ResponseStatus

public ResponseStatus(URI uri,
                      org.jboss.netty.handler.codec.http.HttpResponse response,
                      AsyncHttpProvider provider)
Method Detail

getStatusCode

public int getStatusCode()
Return the response status code

Specified by:
getStatusCode in class HttpResponseStatus
Returns:
the response status code

getStatusText

public String getStatusText()
Return the response status text

Specified by:
getStatusText in class HttpResponseStatus
Returns:
the response status text

getProtocolName

public String getProtocolName()
Description copied from class: HttpResponseStatus
Protocol name from status line.

Specified by:
getProtocolName in class HttpResponseStatus
Returns:
Protocol name.

getProtocolMajorVersion

public int getProtocolMajorVersion()
Description copied from class: HttpResponseStatus
Protocol major version.

Specified by:
getProtocolMajorVersion in class HttpResponseStatus
Returns:
Major version.

getProtocolMinorVersion

public int getProtocolMinorVersion()
Description copied from class: HttpResponseStatus
Protocol minor version.

Specified by:
getProtocolMinorVersion in class HttpResponseStatus
Returns:
Minor version.

getProtocolText

public String getProtocolText()
Description copied from class: HttpResponseStatus
Full protocol name + version

Specified by:
getProtocolText in class HttpResponseStatus
Returns:
protocol name + version


Copyright © 2011. All Rights Reserved.