[TOC]

  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

org.apache.nutch.protocol.httpclient

Class HttpResponse


public class HttpResponse
extends Object
implements Response

An HTTP response.

  • Author:
  • Susam Pal

Field Summary

-    

Fields inherited from interface org.apache.nutch.metadata.HttpHeaders

CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, LAST_MODIFIED, LOCATION, TRANSFER_ENCODING, WRITABLE_CONTENT_TYPE

Method Summary

Methods Modifier and Type Method and Description int getCode() Returns the response code. byte[] getContent() Returns the full content of the response. String getHeader(String name) Returns the value of a named header. Metadata getHeaders() Returns all the headers. URL getUrl() Returns the URL used to retrieve this response.

-    

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

-  

getUrl

public URL getUrl()

Description copied from interface: Response

Returns the URL used to retrieve this response.

  - Specified by: 
  - <code>getUrl</code> in interface <code>Response</code>        
-  

getCode

public int getCode()

Description copied from interface: Response

Returns the response code.

  - Specified by: 
  - <code>getCode</code> in interface <code>Response</code>        
-  

getHeader

public String getHeader(String name)

Description copied from interface: Response

Returns the value of a named header.

  - Specified by: 
  - <code>getHeader</code> in interface <code>Response</code>        
-  

getHeaders

public Metadata getHeaders()

Description copied from interface: Response

Returns all the headers.

  - Specified by: 
  - <code>getHeaders</code> in interface <code>Response</code>        
-  

getContent

public byte[] getContent()

Description copied from interface: Response

Returns the full content of the response.

  - Specified by: 
  - <code>getContent</code> in interface <code>Response</code>       

  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2014 The Apache Software Foundation