org.apache.nutch.protocol.httpclient

## Class HttpFormAuthentication

- java.lang.Object
- - org.apache.nutch.protocol.httpclient.HttpFormAuthentication

-     public class HttpFormAuthentication
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpFormAuthentication(HttpFormAuthConfigurer authConfigurer, org.apache.commons.httpclient.HttpClient client, Http http)`
    `HttpFormAuthentication(java.lang.String loginUrl, java.lang.String loginForm, java.util.Map<java.lang.String,java.lang.String> loginPostData, java.util.Map<java.lang.String,java.lang.String> additionalPostHeaders, java.util.Set<java.lang.String> removedFormFields)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getCookies()`
    `boolean` | `isRedirect()`
    `void` | `login()`
    `void` | `setCookies(java.lang.String cookies)`
    `void` | `setRedirect(boolean redirect)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpFormAuthentication

          public HttpFormAuthentication(HttpFormAuthConfigurer authConfigurer,
                                        org.apache.commons.httpclient.HttpClient client,
                                        Http http)

    - #### HttpFormAuthentication

          public HttpFormAuthentication(java.lang.String loginUrl,
                                        java.lang.String loginForm,
                                        java.util.Map<java.lang.String,java.lang.String> loginPostData,
                                        java.util.Map<java.lang.String,java.lang.String> additionalPostHeaders,
                                        java.util.Set<java.lang.String> removedFormFields)

  - ### Method Detail

    - #### login

          public void login()
                     throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### getCookies

          public java.lang.String getCookies()

    - #### setCookies

          public void setCookies(java.lang.String cookies)

    - #### isRedirect

          public boolean isRedirect()

    - #### setRedirect

          public void setRedirect(boolean redirect)

Copyright © 2019 The Apache Software Foundation