Class CredentialsDescription.SessionCredentialItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.regex.Pattern contentPattern
      The content pattern, or null if no content is sought for
      protected java.lang.String contentRegexp
      The content regexp
      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.lang.String overrideTargetURL
      Override target URL
      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
    • 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
    • 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
      • getFormNamePattern

        public java.util.regex.Pattern getFormNamePattern()
        Get the form name pattern.
        Specified by:
        getFormNamePattern in interface LoginParameters
      • getContentPattern

        public java.util.regex.Pattern getContentPattern()
        Get the content pattern.
        Specified by:
        getContentPattern 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
      • 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