org.apache.nutch.protocol.httpclient
Class HttpAuthenticationFactory
java.lang.Object
org.apache.nutch.protocol.httpclient.HttpAuthenticationFactory
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
public class HttpAuthenticationFactory
- extends Object
- implements org.apache.hadoop.conf.Configurable
Provides the Http protocol implementation
with the ability to authenticate when prompted. The goal is to provide
multiple authentication types but for now just the HttpBasicAuthentication
authentication
type is provided.
- Author:
- Matt Tencati
- See Also:
HttpBasicAuthentication
,
Http
,
HttpResponse
Field Summary |
static org.slf4j.Logger |
LOG
|
static String |
WWW_AUTHENTICATE
The HTTP Authentication (WWW-Authenticate) header which is returned
by a webserver requiring authentication. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WWW_AUTHENTICATE
public static final String WWW_AUTHENTICATE
- The HTTP Authentication (WWW-Authenticate) header which is returned
by a webserver requiring authentication.
- See Also:
- Constant Field Values
LOG
public static final org.slf4j.Logger LOG
HttpAuthenticationFactory
public HttpAuthenticationFactory(org.apache.hadoop.conf.Configuration conf)
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf
in interface org.apache.hadoop.conf.Configurable
findAuthentication
public HttpAuthentication findAuthentication(Metadata header)
Copyright © 2013 The Apache Software Foundation