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