Class CredentialsDescription.SessionCredentialItem
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected java.util.regex.PatterncontentPatternThe content pattern, or null if no content is sought forprotected java.lang.StringcontentRegexpThe content regexpprotected java.util.regex.PatternformNamePatternThe form name pattern, or null if no form is expectedprotected java.lang.StringformNameRegexpThe form name regexpprotected java.lang.StringoverrideTargetURLOverride target URLprotected java.util.ListparametersThe list of the parameters we want to add for this pattern.protected java.util.regex.PatternpatternUrl match patternprotected java.util.regex.PatternpreferredLinkPatternThe preferred link pattern, or null if there's no preferred linkprotected java.lang.StringpreferredLinkRegexpThe preferred link regexpprotected java.util.regex.PatternpreferredRedirectionPatternThe preferred redirection pattern, or null if there's no preferred redirectionprotected java.lang.StringpreferredRedirectionRegexpThe preferred redirection regexpprotected java.lang.Stringregexpurl regexp-
Fields inherited from interface org.apache.manifoldcf.crawler.connectors.webcrawler.LoginParameters
_rcsid
-
-
Constructor Summary
Constructors Constructor Description SessionCredentialItem(java.lang.String regexp, java.util.regex.Pattern p, java.lang.String overrideTargetURL, 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, java.lang.String contentRegexp, java.util.regex.Pattern contentPattern)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(java.lang.String nameRegexp, java.util.regex.Pattern namePattern, java.lang.String value)Add parameterbooleanequals(java.lang.Object o)java.util.regex.PatterngetContentPattern()Get the content pattern.java.util.regex.PatterngetFormNamePattern()Get the form name pattern.java.lang.StringgetOverrideTargetURL()Get the override target URL.CredentialsDescription.SessionCredentialParametergetParameter(int index)Get the actual parameterintgetParameterCount()Get the parameter countjava.util.regex.PatterngetParameterNamePattern(int index)Get the name of the i'th parameter.java.lang.StringgetParameterValue(int index)Get the desired value of the i'th parameter.java.util.regex.PatterngetPattern()Get the patternjava.util.regex.PatterngetPreferredLinkPattern()Get the preferred link pattern.java.util.regex.PatterngetPreferredRedirectionPattern()Get the preferred redirection pattern.inthashCode()
-
-
-
Field Detail
-
regexp
protected final java.lang.String regexp
url regexp
-
pattern
protected final java.util.regex.Pattern pattern
Url match pattern
-
overrideTargetURL
protected final java.lang.String overrideTargetURL
Override target URL
-
preferredRedirectionRegexp
protected final java.lang.String preferredRedirectionRegexp
The preferred redirection regexp
-
preferredRedirectionPattern
protected final java.util.regex.Pattern preferredRedirectionPattern
The preferred redirection pattern, or null if there's no preferred redirection
-
preferredLinkRegexp
protected final java.lang.String preferredLinkRegexp
The preferred link regexp
-
preferredLinkPattern
protected final java.util.regex.Pattern preferredLinkPattern
The preferred link pattern, or null if there's no preferred link
-
formNameRegexp
protected final java.lang.String formNameRegexp
The form name regexp
-
formNamePattern
protected final java.util.regex.Pattern formNamePattern
The form name pattern, or null if no form is expected
-
contentRegexp
protected final java.lang.String contentRegexp
The content regexp
-
contentPattern
protected final java.util.regex.Pattern contentPattern
The content pattern, or null if no content is sought for
-
parameters
protected final java.util.List parameters
The list of the parameters we want to add for this pattern.
-
-
Constructor Detail
-
SessionCredentialItem
public SessionCredentialItem(java.lang.String regexp, java.util.regex.Pattern p, java.lang.String overrideTargetURL, 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, java.lang.String contentRegexp, java.util.regex.Pattern contentPattern)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
-
getOverrideTargetURL
public java.lang.String getOverrideTargetURL()
Get the override target URL.- Specified by:
getOverrideTargetURLin interfaceLoginParameters
-
getPreferredRedirectionPattern
public java.util.regex.Pattern getPreferredRedirectionPattern()
Get the preferred redirection pattern.- Specified by:
getPreferredRedirectionPatternin interfaceLoginParameters
-
getPreferredLinkPattern
public java.util.regex.Pattern getPreferredLinkPattern()
Get the preferred link pattern.- Specified by:
getPreferredLinkPatternin interfaceLoginParameters
-
getFormNamePattern
public java.util.regex.Pattern getFormNamePattern()
Get the form name pattern.- Specified by:
getFormNamePatternin interfaceLoginParameters
-
getContentPattern
public java.util.regex.Pattern getContentPattern()
Get the content pattern.- Specified by:
getContentPatternin interfaceLoginParameters
-
getParameterNamePattern
public java.util.regex.Pattern getParameterNamePattern(int index)
Get the name of the i'th parameter.- Specified by:
getParameterNamePatternin interfaceLoginParameters
-
getParameterValue
public java.lang.String getParameterValue(int index)
Get the desired value of the i'th parameter.- Specified by:
getParameterValuein interfaceLoginParameters
-
getParameterCount
public int getParameterCount()
Get the parameter count- Specified by:
getParameterCountin interfaceLoginParameters
-
getParameter
public CredentialsDescription.SessionCredentialParameter getParameter(int index)
Get the actual parameter
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-