protected static class CredentialsDescription.SessionCredentialItem extends Object implements LoginParameters
| Modifier and Type | Field and Description |
|---|---|
protected Pattern |
contentPattern
The content pattern, or null if no content is sought for
|
protected String |
contentRegexp
The content regexp
|
protected Pattern |
formNamePattern
The form name pattern, or null if no form is expected
|
protected String |
formNameRegexp
The form name regexp
|
protected String |
overrideTargetURL
Override target URL
|
protected List |
parameters
The list of the parameters we want to add for this pattern.
|
protected Pattern |
pattern
Url match pattern
|
protected Pattern |
preferredLinkPattern
The preferred link pattern, or null if there's no preferred link
|
protected String |
preferredLinkRegexp
The preferred link regexp
|
protected Pattern |
preferredRedirectionPattern
The preferred redirection pattern, or null if there's no preferred redirection
|
protected String |
preferredRedirectionRegexp
The preferred redirection regexp
|
protected String |
regexp
url regexp
|
_rcsid| Constructor and Description |
|---|
CredentialsDescription.SessionCredentialItem(String regexp,
Pattern p,
String overrideTargetURL,
String preferredLinkRegexp,
Pattern preferredLinkPattern,
String formNameRegexp,
Pattern formNamePattern,
String preferredRedirectionRegexp,
Pattern preferredRedirectionPattern,
String contentRegexp,
Pattern contentPattern)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String nameRegexp,
Pattern namePattern,
String value)
Add parameter
|
boolean |
equals(Object o) |
Pattern |
getContentPattern()
Get the content pattern.
|
Pattern |
getFormNamePattern()
Get the form name pattern.
|
String |
getOverrideTargetURL()
Get the override target URL.
|
CredentialsDescription.SessionCredentialParameter |
getParameter(int index)
Get the actual parameter
|
int |
getParameterCount()
Get the parameter count
|
Pattern |
getParameterNamePattern(int index)
Get the name of the i'th parameter.
|
String |
getParameterValue(int index)
Get the desired value of the i'th parameter.
|
Pattern |
getPattern()
Get the pattern
|
Pattern |
getPreferredLinkPattern()
Get the preferred link pattern.
|
Pattern |
getPreferredRedirectionPattern()
Get the preferred redirection pattern.
|
int |
hashCode() |
protected final String regexp
protected final Pattern pattern
protected final String overrideTargetURL
protected final String preferredRedirectionRegexp
protected final Pattern preferredRedirectionPattern
protected final String preferredLinkRegexp
protected final Pattern preferredLinkPattern
protected final String formNameRegexp
protected final Pattern formNamePattern
protected final String contentRegexp
protected final Pattern contentPattern
protected final List parameters
public CredentialsDescription.SessionCredentialItem(String regexp, Pattern p, String overrideTargetURL, String preferredLinkRegexp, Pattern preferredLinkPattern, String formNameRegexp, Pattern formNamePattern, String preferredRedirectionRegexp, Pattern preferredRedirectionPattern, String contentRegexp, Pattern contentPattern)
public void addParameter(String nameRegexp, Pattern namePattern, String value)
public Pattern getPattern()
public String getOverrideTargetURL()
getOverrideTargetURL in interface LoginParameterspublic Pattern getPreferredRedirectionPattern()
getPreferredRedirectionPattern in interface LoginParameterspublic Pattern getPreferredLinkPattern()
getPreferredLinkPattern in interface LoginParameterspublic Pattern getFormNamePattern()
getFormNamePattern in interface LoginParameterspublic Pattern getContentPattern()
getContentPattern in interface LoginParameterspublic Pattern getParameterNamePattern(int index)
getParameterNamePattern in interface LoginParameterspublic String getParameterValue(int index)
getParameterValue in interface LoginParameterspublic int getParameterCount()
getParameterCount in interface LoginParameterspublic CredentialsDescription.SessionCredentialParameter getParameter(int index)