Class Colours
java.lang.Object
org.glassfish.jersey.examples.console.resources.Colours
A web resource for a list of colours.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.jettison.json.JSONArraygetColourListAsJSON(String filter) Returns a list of colours as a JSON array.getColourListAsText(String filter) Returns a list of colours as plain text, one colour per line.getMatchingColours(String filter) Returns a list of colours.
-
Constructor Details
-
Colours
public Colours()
-
-
Method Details
-
getColourListAsText
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
-
getMatchingColours
Returns a list of colours.- 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
-