Class Colours
- java.lang.Object
-
- org.glassfish.jersey.examples.console.resources.Colours
-
public class Colours extends Object
A web resource for a list of colours.
-
-
Constructor Summary
Constructors Constructor Description Colours()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.codehaus.jettison.json.JSONArraygetColourListAsJSON(String filter)Returns a list of colours as a JSON array.StringgetColourListAsText(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.
-
-
-
Method Detail
-
getColourListAsText
@GET @Produces("text/plain") public String getColourListAsText(@QueryParam("match") String filter)Returns a list of colours as plain text, one colour per line.- Parameters:
filter- If not empty, constrains the list of colours to only those that contain this substring- Returns:
- the list of colours matching the filter
-
getColourListAsJSON
@GET @Produces("application/json") public org.codehaus.jettison.json.JSONArray getColourListAsJSON(@QueryParam("match") String filter)Returns a list of colours as a JSON array.- Parameters:
filter- If not empty, constrains the list of colours to only those that contain this substring- Returns:
- the list of colours matching the filter
-
-