org.neo4j.server.rest.repr
Class OutputFormat
java.lang.Object
org.neo4j.server.rest.repr.OutputFormat
public class OutputFormat
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputFormat
public OutputFormat(RepresentationFormat format,
URI baseUri,
ExtensionInjector extensions)
ok
public final javax.ws.rs.core.Response ok(Representation representation)
created
public final <REPR extends Representation & EntityRepresentation> javax.ws.rs.core.Response created(REPR representation)
throws BadInputException
- Throws:
BadInputException
response
public final javax.ws.rs.core.Response response(javax.ws.rs.core.Response.Status status,
Representation representation)
throws BadInputException
- Throws:
BadInputException
badRequest
public javax.ws.rs.core.Response badRequest(Throwable exception)
notFound
public javax.ws.rs.core.Response notFound(Throwable exception)
notFound
public javax.ws.rs.core.Response notFound()
conflict
public javax.ws.rs.core.Response conflict(Throwable exception)
serverError
public javax.ws.rs.core.Response serverError(Throwable exception)
response
protected javax.ws.rs.core.Response response(javax.ws.rs.core.Response.ResponseBuilder response,
Representation representation)
getMediaType
public javax.ws.rs.core.MediaType getMediaType()
format
public String format(Representation representation)
noContent
public javax.ws.rs.core.Response noContent()
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.