|
||||||||||
| 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(java.lang.String filter)
Returns a list of colours as a JSON array. |
java.lang.String |
getColourListAsText(java.lang.String filter)
Returns a list of colours as plain text, one colour per line. |
static java.util.List<java.lang.String> |
getMatchingColours(java.lang.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 |
|---|
public java.lang.String getColourListAsText(java.lang.String filter)
filter - If not empty, constrains the list of colours to only
those that contain this substring
public org.codehaus.jettison.json.JSONArray getColourListAsJSON(java.lang.String filter)
filter - If not empty, constrains the list of colours to only
those that contain this substring
public static java.util.List<java.lang.String> getMatchingColours(java.lang.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 | |||||||||