org.apache.nutch.net.protocols

## Interface Response

- All Superinterfaces:
    HttpHeaders
  All Known Implementing Classes:
    HttpResponse, HttpResponse

      public interface Response
      extends HttpHeaders

  A response interface. Makes all protocols model HTTP.

- - ### 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`

  - ### Method Summary

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

- - ### Method Detail

    - #### getUrl

          java.net.URL getUrl()

      Returns the URL used to retrieve this response.

    - #### getCode

          int getCode()

      Returns the response code.

    - #### getHeader

          java.lang.String getHeader(java.lang.String name)

      Returns the value of a named header.

    - #### getHeaders

          Metadata getHeaders()

      Returns all the headers.

    - #### getContent

          byte[] getContent()

      Returns the full content of the response.

Copyright © 2019 The Apache Software Foundation