public class DefaultFormat
extends org.neo4j.server.rest.repr.RepresentationFormat
| Constructor and Description |
|---|
DefaultFormat(org.neo4j.server.rest.repr.RepresentationFormat inner,
Collection<javax.ws.rs.core.MediaType> supported,
javax.ws.rs.core.MediaType... requested) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
complete(org.neo4j.server.rest.repr.ListWriter serializer) |
protected String |
complete(org.neo4j.server.rest.repr.MappingWriter serializer) |
List<Object> |
readList(String input) |
Map<String,Object> |
readMap(String input,
String... requiredKeys) |
URI |
readUri(String input) |
Object |
readValue(String input) |
protected org.neo4j.server.rest.repr.ListWriter |
serializeList(String type) |
protected org.neo4j.server.rest.repr.MappingWriter |
serializeMapping(String type) |
protected String |
serializeValue(String type,
Object value) |
static <T> Map<String,T> |
validateKeys(Map<String,T> map,
String... requiredKeys) |
complete, convertBoolean, convertByte, convertCharacter, convertDouble, convertFloat, convertInteger, convertLong, convertNode, convertRelationship, convertShort, convertString, convertURI, getNode, getNode, getRelationship, readParameterList, toStringpublic DefaultFormat(org.neo4j.server.rest.repr.RepresentationFormat inner,
Collection<javax.ws.rs.core.MediaType> supported,
javax.ws.rs.core.MediaType... requested)
protected String serializeValue(String type, Object value)
serializeValue in class org.neo4j.server.rest.repr.RepresentationFormatprotected org.neo4j.server.rest.repr.ListWriter serializeList(String type)
serializeList in class org.neo4j.server.rest.repr.RepresentationFormatprotected org.neo4j.server.rest.repr.MappingWriter serializeMapping(String type)
serializeMapping in class org.neo4j.server.rest.repr.RepresentationFormatprotected String complete(org.neo4j.server.rest.repr.ListWriter serializer)
complete in class org.neo4j.server.rest.repr.RepresentationFormatprotected String complete(org.neo4j.server.rest.repr.MappingWriter serializer)
complete in class org.neo4j.server.rest.repr.RepresentationFormatpublic Map<String,Object> readMap(String input, String... requiredKeys) throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic List<Object> readList(String input) throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic URI readUri(String input) throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.