org.neo4j.server.rest.repr.formats
Class CompactJsonFormat
java.lang.Object
org.neo4j.server.rest.repr.RepresentationFormat
org.neo4j.server.rest.repr.formats.CompactJsonFormat
- All Implemented Interfaces:
- InputFormat
public class CompactJsonFormat
- extends RepresentationFormat
|
Field Summary |
static javax.ws.rs.core.MediaType |
MEDIA_TYPE
|
| Methods inherited from class org.neo4j.server.rest.repr.RepresentationFormat |
convertBoolean, convertByte, convertCharacter, convertDouble, convertFloat, convertInteger, convertLong, convertNode, convertRelationship, convertShort, convertString, convertURI, getNode, getNode, getRelationship, readParameterList, toString |
MEDIA_TYPE
public static final javax.ws.rs.core.MediaType MEDIA_TYPE
CompactJsonFormat
public CompactJsonFormat()
serializeList
protected ListWriter serializeList(String type)
- Specified by:
serializeList in class RepresentationFormat
complete
protected String complete(ListWriter serializer)
- Specified by:
complete in class RepresentationFormat
serializeMapping
protected MappingWriter serializeMapping(String type)
- Specified by:
serializeMapping in class RepresentationFormat
complete
protected String complete(MappingWriter serializer)
- Specified by:
complete in class RepresentationFormat
serializeValue
protected String serializeValue(String type,
Object value)
- Specified by:
serializeValue in class RepresentationFormat
readMap
public Map<String,Object> readMap(String input,
String... requiredKeys)
throws BadInputException
- Throws:
BadInputException
readList
public List<Object> readList(String input)
readValue
public Object readValue(String input)
throws BadInputException
- Throws:
BadInputException
readUri
public URI readUri(String input)
throws BadInputException
- Throws:
BadInputException
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.