org.apache.nutch.net.protocols
Interface Response


public interface Response

A response inteface. Makes all protocols model HTTP.


Method Summary
 int getCode()
          Returns the response code.
 byte[] getCompressedContent()
          Returns the compressed version of the content if the server transmitted a compressed version, or null otherwise.
 byte[] getContent()
          Returns the full content of the response.
 String getHeader(String name)
          Returns the value of a named header.
 int getNumContinues()
          Returns the number of 100/Continue headers encountered
 URL getUrl()
          Returns the URL used to retrieve this response.
 

Method Detail

getUrl

public URL getUrl()
Returns the URL used to retrieve this response.


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()
Returns the full content of the response.


getCompressedContent

public byte[] getCompressedContent()
Returns the compressed version of the content if the server transmitted a compressed version, or null otherwise.


getNumContinues

public int getNumContinues()
Returns the number of 100/Continue headers encountered



Copyright © 2006 The Apache Software Foundation