|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.examples.console.resources.Colours
public class Colours
A web resource for a list of colours.
| Constructor Summary | |
|---|---|
Colours()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Colours()
| Method Detail |
|---|
@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 substring
public static List<String> getMatchingColours(String filter)
filter - If not empty, constrains the list of colours to only
those that contain this substring
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||