org.spiffyui.client.widgets.multivaluesuggest
Class MultivalueSuggestRESTHelper
java.lang.Object
org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestHelper
org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestRESTHelper
public abstract class MultivalueSuggestRESTHelper
- extends MultivalueSuggestHelper
An abstract class that handles building of the REST endpoint URL and
helps with parsing the JSON payload.
|
Constructor Summary |
MultivalueSuggestRESTHelper(java.lang.String totalSizeKey,
java.lang.String optionsKey,
java.lang.String nameKey,
java.lang.String valueKey)
Constructor |
|
Method Summary |
abstract java.lang.String |
buildUrl(java.lang.String q,
int indexFrom,
int indexTo)
Build the REST URL with the specified parameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultivalueSuggestRESTHelper
public MultivalueSuggestRESTHelper(java.lang.String totalSizeKey,
java.lang.String optionsKey,
java.lang.String nameKey,
java.lang.String valueKey)
- Constructor
- Parameters:
totalSizeKey - - total size JSON keyoptionsKey - - options JSON keynameKey - - name JSON key for each optionvalueKey - - value JSON key for each option
buildUrl
public abstract java.lang.String buildUrl(java.lang.String q,
int indexFrom,
int indexTo)
- Build the REST URL with the specified parameters
- Parameters:
q - the queryindexFrom - the starting indexindexTo - the ending index
- Returns:
- the URL with the specified parameters