|
|||||||||
| 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 |
KEY
Key query parameter. |
static Splitter |
KEY_SPLITTER
Key response splitter. |
static String |
ZIP
Zip resource. |
static String |
ZIPGZIP
Zip and GZip resource. |
| Method Summary | |
|---|---|
static String |
checkKey(ByteString key)
Turns a non-null key into a string. |
static String |
czip2response(Map<String,MaybeCompressed<ByteString>> entries)
|
static String |
iterable2String(Iterable<ByteString> keys)
Turns a collection of keys into a string. |
static Map<String,MaybeCompressed<ByteString>> |
response2czip(String response)
|
static List<ByteString> |
response2List(String response)
Turns a text/plain response into a list of keys. |
static Map<String,ByteString> |
response2zip(String response)
|
static StreamingOutput |
value2Output(BocasValue value)
Turns a Bocas value into an streaming output. |
static String |
zip2response(Map<String,ByteString> entries)
|
| 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 ZIP
public static final String ZIPGZIP
| 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.public static StreamingOutput value2Output(BocasValue value)
public static String zip2response(Map<String,ByteString> entries)
public static String czip2response(Map<String,MaybeCompressed<ByteString>> entries)
public static Map<String,ByteString> response2zip(String response)
public static Map<String,MaybeCompressed<ByteString>> response2czip(String response)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||