Package org.archive.modules.credential

Examples of org.archive.modules.credential.HtmlFormCredential


    }
   
    public void testFormAuth() throws Exception {
        startHttpServers();

        HtmlFormCredential cred = new HtmlFormCredential();
        cred.setDomain("localhost:7779");
        cred.setLoginUri("/j_security_check");
        HashMap<String, String> formItems = new HashMap<String,String>();
        formItems.put("j_username", FORM_AUTH_LOGIN);
        formItems.put("j_password", FORM_AUTH_PASSWORD);
        cred.setFormItems(formItems);

        getFetcher().getCredentialStore().getCredentials().put("form-auth-credential",
                cred);

        CrawlURI curi = makeCrawlURI("http://localhost:7779/");
View Full Code Here

TOP

Related Classes of org.archive.modules.credential.HtmlFormCredential

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.