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) |
javax.ws.rs.core.Response |
badRequestWithoutLegacyStacktrace(Throwable exception)
Before the 'errors' response existed, we would just spit out stack traces.
|
<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() |
RepresentationWriteHandler |
getRepresentationWriteHandler() |
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.StatusType status,
org.neo4j.server.rest.repr.Representation representation) |
javax.ws.rs.core.Response |
seeOther(URI uri) |
javax.ws.rs.core.Response |
serverError(Throwable exception) |
javax.ws.rs.core.Response |
serverErrorWithoutLegacyStacktrace(Throwable exception) |
void |
setRepresentationWriteHandler(RepresentationWriteHandler representationWriteHandler) |
javax.ws.rs.core.Response |
unauthorized(org.neo4j.server.rest.repr.Representation representation,
String authChallenge) |
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 RepresentationWriteHandler getRepresentationWriteHandler()
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.StatusType status,
org.neo4j.server.rest.repr.Representation representation)
public javax.ws.rs.core.Response badRequestWithoutLegacyStacktrace(Throwable exception)
public 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 seeOther(URI uri)
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 serverErrorWithoutLegacyStacktrace(Throwable exception)
#badRequestWithoutLegacyStacktrace}public 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)
public javax.ws.rs.core.Response unauthorized(org.neo4j.server.rest.repr.Representation representation,
String authChallenge)
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.