public class Colours extends Object
| Constructor and Description |
|---|
Colours() |
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.jettison.json.JSONArray |
getColourListAsJSON(String filter)
Returns a list of colours as a JSON array.
|
String |
getColourListAsText(String filter)
Returns a list of colours as plain text, one colour per line.
|
static List<String> |
getMatchingColours(String filter)
Returns a list of colours.
|
@GET @Produces(value="text/plain") public String getColourListAsText(@QueryParam(value="match") String filter)
filter - If not empty, constrains the list of colours to only
those that contain this substring@GET @Produces(value="application/json") public org.codehaus.jettison.json.JSONArray getColourListAsJSON(@QueryParam(value="match") String filter)
filter - If not empty, constrains the list of colours to only
those that contain this substringCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.