Class HttpAuthenticationFactory
- java.lang.Object
-
- org.apache.nutch.protocol.httpclient.HttpAuthenticationFactory
-
- All Implemented Interfaces:
Configurable
public class HttpAuthenticationFactory extends Object implements 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 theHttpBasicAuthenticationauthentication type is provided.- Author:
- Matt Tencati
- See Also:
HttpBasicAuthentication,Http,HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringWWW_AUTHENTICATEThe HTTP Authentication (WWW-Authenticate) header which is returned by a webserver requiring authentication.
-
Constructor Summary
Constructors Constructor Description HttpAuthenticationFactory(Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpAuthenticationfindAuthentication(Metadata header)ConfigurationgetConf()voidsetConf(Configuration conf)
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
HttpAuthenticationFactory
public HttpAuthenticationFactory(Configuration conf)
-
-
Method Detail
-
setConf
public void setConf(Configuration conf)
- Specified by:
setConfin interfaceConfigurable
-
getConf
public Configuration getConf()
- Specified by:
getConfin interfaceConfigurable
-
findAuthentication
public HttpAuthentication findAuthentication(Metadata header)
-
-