|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.derquinse.common.base.NotInstantiable
net.derquinse.bocas.jersey.BocasResources
public final class BocasResources
Resource constants for Bocas RESTful API.
| Field Summary | |
|---|---|
static String |
CATALOG
Catalog resource. |
static String |
HASH
Hash function resource. |
static String |
KEY
Key query parameter. |
static Splitter |
KEY_SPLITTER
Key response splitter. |
| Method Summary | |
|---|---|
static String |
checkKey(ByteString key)
Turns a non-null key into a string. |
static String |
iterable2String(Iterable<ByteString> keys)
Turns a collection of keys into a string. |
static List<ByteString> |
response2List(String response)
Turns a text/plain response into a list of keys. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Splitter KEY_SPLITTER
public static final String KEY
public static final String CATALOG
public static final String HASH
| Method Detail |
|---|
public static String checkKey(ByteString key)
public static String iterable2String(Iterable<ByteString> keys)
public static List<ByteString> response2List(@Nullable
String response)
BocasException - if unable to perform the conversion.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||