Interface ValueGenerator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getValue​(org.apache.commons.httpclient.URI uri, java.lang.String url, java.lang.String fieldId, java.lang.String defaultValue, java.util.List<java.lang.String> definedValues, java.util.Map<java.lang.String,​java.lang.String> envAttributes, java.util.Map<java.lang.String,​java.lang.String> fieldAttributes)
      The interface that accepts default values for the spider.
    • Method Detail

      • getValue

        java.lang.String getValue​(org.apache.commons.httpclient.URI uri,
                                  java.lang.String url,
                                  java.lang.String fieldId,
                                  java.lang.String defaultValue,
                                  java.util.List<java.lang.String> definedValues,
                                  java.util.Map<java.lang.String,​java.lang.String> envAttributes,
                                  java.util.Map<java.lang.String,​java.lang.String> fieldAttributes)
        The interface that accepts default values for the spider.
        Parameters:
        uri - the uri
        url - the resolved URL
        fieldId - the name associated with the current field
        defaultValue - the value of 'value attribute' if it has one
        definedValues - the predefined values for the field, if present
        envAttributes - all attributes of the current form
        fieldAttributes - all attributes of the current field
        Since:
        2.6.0