com.ning.http.client.providers.apache
Class ApacheResponseStatus

java.lang.Object
  extended by com.ning.http.client.HttpContent
      extended by com.ning.http.client.HttpResponseStatus
          extended by com.ning.http.client.providers.apache.ApacheResponseStatus

public class ApacheResponseStatus
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
ApacheResponseStatus(URI uri, org.apache.commons.httpclient.HttpMethodBase method, 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

ApacheResponseStatus

public ApacheResponseStatus(URI uri,
                            org.apache.commons.httpclient.HttpMethodBase method,
                            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 © 2014. All Rights Reserved.