Class Http

  • All Implemented Interfaces:
    Configurable, Pluggable, Protocol

    public class Http
    extends HttpBase

    This class is a protocol plugin that configures an HTTP client for Basic, Digest and NTLM authentication schemes for web server as well as proxy server. It takes care of HTTPS protocol as well as cookies in a single fetch session.

    Documentation can be found on the Nutch HttpAuthenticationSchemes wiki page.

    The original description of the motivation to support HttpPostAuthentication is also included on the Nutch wiki. Additionally HttpPostAuthentication development is documented at the NUTCH-827 Jira issue.

    Author:
    Susam Pal
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
    • Constructor Detail

      • Http

        public Http()
        Constructs this plugin.
    • Method Detail

      • setConf

        public void setConf​(Configuration conf)
        Reads the configuration from the Nutch configuration files and sets the configuration.
        Specified by:
        setConf in interface Configurable
        Overrides:
        setConf in class HttpBase
        Parameters:
        conf - Configuration
      • main

        public static void main​(String[] args)
                         throws Exception
        Main method.
        Parameters:
        args - Command line arguments
        Throws:
        Exception - if a fatal error is encountered whilst running the program