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