org.apache.manifoldcf.crawler.connectors.webcrawler
Class CredentialsDescription.SessionCredentialItem

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.webcrawler.CredentialsDescription.SessionCredentialItem
All Implemented Interfaces:
LoginParameters
Enclosing class:
CredentialsDescription

protected static class CredentialsDescription.SessionCredentialItem
extends java.lang.Object
implements LoginParameters

Session credential helper class


Field Summary
protected  java.util.regex.Pattern formNamePattern
          The form name pattern, or null if no form is expected
protected  java.lang.String formNameRegexp
          The form name regexp
protected  java.util.List parameters
          The list of the parameters we want to add for this pattern.
protected  java.util.regex.Pattern pattern
          Url match pattern
protected  java.util.regex.Pattern preferredLinkPattern
          The preferred link pattern, or null if there's no preferred link
protected  java.lang.String preferredLinkRegexp
          The preferred link regexp
protected  java.util.regex.Pattern preferredRedirectionPattern
          The preferred redirection pattern, or null if there's no preferred redirection
protected  java.lang.String preferredRedirectionRegexp
          The preferred redirection regexp
protected  java.lang.String regexp
          url regexp
 
Fields inherited from interface org.apache.manifoldcf.crawler.connectors.webcrawler.LoginParameters
_rcsid
 
Constructor Summary
CredentialsDescription.SessionCredentialItem(java.lang.String regexp, java.util.regex.Pattern p, java.lang.String preferredLinkRegexp, java.util.regex.Pattern preferredLinkPattern, java.lang.String formNameRegexp, java.util.regex.Pattern formNamePattern, java.lang.String preferredRedirectionRegexp, java.util.regex.Pattern preferredRedirectionPattern)
          Constructor
 
Method Summary
 void addParameter(java.lang.String nameRegexp, java.util.regex.Pattern namePattern, java.lang.String value)
          Add parameter
 boolean equals(java.lang.Object o)
           
 java.util.regex.Pattern getFormNamePattern()
          Get the form name pattern.
 CredentialsDescription.SessionCredentialParameter getParameter(int index)
          Get the actual parameter
 int getParameterCount()
          Get the parameter count
 java.util.regex.Pattern getParameterNamePattern(int index)
          Get the name of the i'th parameter.
 java.lang.String getParameterValue(int index)
          Get the desired value of the i'th parameter.
 java.util.regex.Pattern getPattern()
          Get the pattern
 java.util.regex.Pattern getPreferredLinkPattern()
          Get the preferred link pattern.
 java.util.regex.Pattern getPreferredRedirectionPattern()
          Get the preferred redirection pattern.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regexp

protected java.lang.String regexp
url regexp


pattern

protected java.util.regex.Pattern pattern
Url match pattern


preferredRedirectionRegexp

protected java.lang.String preferredRedirectionRegexp
The preferred redirection regexp


preferredRedirectionPattern

protected java.util.regex.Pattern preferredRedirectionPattern
The preferred redirection pattern, or null if there's no preferred redirection


preferredLinkRegexp

protected java.lang.String preferredLinkRegexp
The preferred link regexp


preferredLinkPattern

protected java.util.regex.Pattern preferredLinkPattern
The preferred link pattern, or null if there's no preferred link


formNameRegexp

protected java.lang.String formNameRegexp
The form name regexp


formNamePattern

protected java.util.regex.Pattern formNamePattern
The form name pattern, or null if no form is expected


parameters

protected java.util.List parameters
The list of the parameters we want to add for this pattern.

Constructor Detail

CredentialsDescription.SessionCredentialItem

public CredentialsDescription.SessionCredentialItem(java.lang.String regexp,
                                                    java.util.regex.Pattern p,
                                                    java.lang.String preferredLinkRegexp,
                                                    java.util.regex.Pattern preferredLinkPattern,
                                                    java.lang.String formNameRegexp,
                                                    java.util.regex.Pattern formNamePattern,
                                                    java.lang.String preferredRedirectionRegexp,
                                                    java.util.regex.Pattern preferredRedirectionPattern)
Constructor

Method Detail

addParameter

public void addParameter(java.lang.String nameRegexp,
                         java.util.regex.Pattern namePattern,
                         java.lang.String value)
Add parameter


getPattern

public java.util.regex.Pattern getPattern()
Get the pattern


getPreferredRedirectionPattern

public java.util.regex.Pattern getPreferredRedirectionPattern()
Get the preferred redirection pattern.

Specified by:
getPreferredRedirectionPattern in interface LoginParameters

getPreferredLinkPattern

public java.util.regex.Pattern getPreferredLinkPattern()
Get the preferred link pattern.

Specified by:
getPreferredLinkPattern in interface LoginParameters

getFormNamePattern

public java.util.regex.Pattern getFormNamePattern()
Get the form name pattern.

Specified by:
getFormNamePattern in interface LoginParameters

getParameterNamePattern

public java.util.regex.Pattern getParameterNamePattern(int index)
Get the name of the i'th parameter.

Specified by:
getParameterNamePattern in interface LoginParameters

getParameterValue

public java.lang.String getParameterValue(int index)
Get the desired value of the i'th parameter.

Specified by:
getParameterValue in interface LoginParameters

getParameterCount

public int getParameterCount()
Get the parameter count

Specified by:
getParameterCount in interface LoginParameters

getParameter

public CredentialsDescription.SessionCredentialParameter getParameter(int index)
Get the actual parameter


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object