org.neo4j.server.rest.repr
Class OutputFormat

java.lang.Object
  extended by 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)
           
 
Method Summary
 String assemble(org.neo4j.server.rest.repr.Representation representation)
           
 javax.ws.rs.core.Response badRequest(Throwable exception)
           
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation>
javax.ws.rs.core.Response
conflict(REPR representation)
           
 javax.ws.rs.core.Response conflict(Throwable exception)
           
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation>
javax.ws.rs.core.Response
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(org.neo4j.server.rest.repr.Representation representation)
           
<REPR extends org.neo4j.server.rest.repr.Representation & EntityRepresentation>
javax.ws.rs.core.Response
okIncludeLocation(REPR representation)
           
protected  javax.ws.rs.core.Response response(javax.ws.rs.core.Response.ResponseBuilder response, org.neo4j.server.rest.repr.Representation 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFormat

public OutputFormat(org.neo4j.server.rest.repr.RepresentationFormat format,
                    URI baseUri,
                    org.neo4j.server.rest.repr.ExtensionInjector extensions)
Method Detail

ok

public final javax.ws.rs.core.Response ok(org.neo4j.server.rest.repr.Representation representation)

okIncludeLocation

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
Throws:
org.neo4j.server.rest.repr.BadInputException

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)

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)

conflict

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
Throws:
org.neo4j.server.rest.repr.BadInputException

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()

assemble

public String assemble(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-2013 The Neo4j Graph Database Project. All Rights Reserved.