HTTPCLIENT-1364: added default constructor to NTLMScheme

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2013-06-04 07:54:32 +00:00
parent 70e8b48473
commit eb26f23b3d
2 changed files with 9 additions and 2 deletions

View File

@ -70,6 +70,13 @@ public class NTLMScheme extends AuthSchemeBase {
this.challenge = null;
}
/**
* @since 4.3
*/
public NTLMScheme() {
this(new NTLMEngineImpl());
}
public String getSchemeName() {
return "ntlm";
}

View File

@ -46,11 +46,11 @@ import org.apache.http.protocol.HttpContext;
public class NTLMSchemeFactory implements AuthSchemeFactory, AuthSchemeProvider {
public AuthScheme newInstance(final HttpParams params) {
return new NTLMScheme(new NTLMEngineImpl());
return new NTLMScheme();
}
public AuthScheme create(final HttpContext context) {
return new NTLMScheme(new NTLMEngineImpl());
return new NTLMScheme();
}
}