public class OutputFormat extends Object
| Constructor and Description |
|---|
OutputFormat(org.neo4j.server.rest.repr.RepresentationFormat format,
URI baseUri,
org.neo4j.server.rest.repr.ExtensionInjector extensions) |
| Modifier and Type | Method and Description |
|---|---|
String |
assemble(org.neo4j.server.rest.repr.Representation representation) |
javax.ws.rs.core.Response |
badRequest(javax.ws.rs.core.MediaType mediaType,
String entity) |
javax.ws.rs.core.Response |
badRequest(Throwable exception) |
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation> |
conflict(REPR representation) |
javax.ws.rs.core.Response |
conflict(Throwable exception) |
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation> |
created(REPR representation) |
javax.ws.rs.core.MediaType |
getMediaType() |
javax.ws.rs.core.Response |
methodNotAllowed(UnsupportedOperationException e) |
javax.ws.rs.core.Response |
noContent() |
javax.ws.rs.core.Response |
notFound() |
javax.ws.rs.core.Response |
notFound(Throwable exception) |
javax.ws.rs.core.Response |
ok() |
javax.ws.rs.core.Response |
ok(org.neo4j.server.rest.repr.Representation representation) |
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation> |
okIncludeLocation(REPR representation) |
javax.ws.rs.core.Response |
response(javax.ws.rs.core.Response.Status status,
org.neo4j.server.rest.repr.Representation representation) |
javax.ws.rs.core.Response |
serverError(Throwable exception) |
void |
setRepresentationWriteHandler(RepresentationWriteHandler representationWriteHandler) |
static void |
write(org.neo4j.server.rest.repr.Representation representation,
org.neo4j.server.rest.repr.RepresentationFormat format,
URI baseUri) |
public OutputFormat(org.neo4j.server.rest.repr.RepresentationFormat format,
URI baseUri,
org.neo4j.server.rest.repr.ExtensionInjector extensions)
public void setRepresentationWriteHandler(RepresentationWriteHandler representationWriteHandler)
public final javax.ws.rs.core.Response ok(org.neo4j.server.rest.repr.Representation representation)
public final <REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation> javax.ws.rs.core.Response okIncludeLocation(REPR representation) throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic 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
org.neo4j.server.rest.repr.BadInputExceptionpublic 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
org.neo4j.server.rest.repr.BadInputExceptionpublic javax.ws.rs.core.Response badRequest(Throwable exception)
public javax.ws.rs.core.Response notFound(Throwable exception)
public javax.ws.rs.core.Response notFound()
public javax.ws.rs.core.Response conflict(Throwable exception)
public final <REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation> javax.ws.rs.core.Response conflict(REPR representation) throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic javax.ws.rs.core.Response serverError(Throwable exception)
public static void write(org.neo4j.server.rest.repr.Representation representation,
org.neo4j.server.rest.repr.RepresentationFormat format,
URI baseUri)
public javax.ws.rs.core.MediaType getMediaType()
public String assemble(org.neo4j.server.rest.repr.Representation representation)
public javax.ws.rs.core.Response noContent()
public javax.ws.rs.core.Response methodNotAllowed(UnsupportedOperationException e)
public javax.ws.rs.core.Response ok()
public javax.ws.rs.core.Response badRequest(javax.ws.rs.core.MediaType mediaType,
String entity)
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.