org.apache.nutch.protocol.httpclient
Class HttpResponse

java.lang.Object
  extended byorg.apache.nutch.protocol.httpclient.HttpResponse

public class HttpResponse
extends Object

An HTTP response.


Constructor Summary
HttpResponse(URL url)
           
 
Method Summary
 int getCode()
          Returns the response code.
 byte[] getContent()
           
 String getHeader(String name)
          Returns the value of a named header.
 Content toContent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponse

public HttpResponse(URL url)
             throws IOException
Method Detail

getCode

public int getCode()
Returns the response code.


getHeader

public String getHeader(String name)
Returns the value of a named header.


getContent

public byte[] getContent()

toContent

public Content toContent()


Copyright © 2006 The Apache Software Foundation