com.xebialabs.deployit.core.api.resteasy.http.tunnel
Class ResponseFactory

java.lang.Object
  extended by com.xebialabs.deployit.core.api.resteasy.http.tunnel.ResponseFactory

public class ResponseFactory
extends java.lang.Object


Constructor Summary
ResponseFactory()
           
 
Method Summary
static javax.ws.rs.core.Response.ResponseBuilder accepted()
           
static javax.ws.rs.core.Response.ResponseBuilder badRequest(java.lang.Object entity)
           
static javax.ws.rs.core.Response.ResponseBuilder created(java.lang.Object entity)
           
static javax.ws.rs.core.Response.ResponseBuilder getInstance()
           
static javax.ws.rs.core.Response.ResponseBuilder noContent()
           
static javax.ws.rs.core.Response.ResponseBuilder notModified()
           
static javax.ws.rs.core.Response.ResponseBuilder ok()
           
static javax.ws.rs.core.Response.ResponseBuilder ok(java.lang.Object entity)
           
static javax.ws.rs.core.Response.ResponseBuilder serverError()
           
static javax.ws.rs.core.Response.ResponseBuilder status(int status)
           
static javax.ws.rs.core.Response.ResponseBuilder status(javax.ws.rs.core.Response.Status status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseFactory

public ResponseFactory()
Method Detail

getInstance

public static javax.ws.rs.core.Response.ResponseBuilder getInstance()

status

public static javax.ws.rs.core.Response.ResponseBuilder status(javax.ws.rs.core.Response.Status status)

status

public static javax.ws.rs.core.Response.ResponseBuilder status(int status)

serverError

public static javax.ws.rs.core.Response.ResponseBuilder serverError()

ok

public static javax.ws.rs.core.Response.ResponseBuilder ok(java.lang.Object entity)

ok

public static javax.ws.rs.core.Response.ResponseBuilder ok()

noContent

public static javax.ws.rs.core.Response.ResponseBuilder noContent()

notModified

public static javax.ws.rs.core.Response.ResponseBuilder notModified()

created

public static javax.ws.rs.core.Response.ResponseBuilder created(java.lang.Object entity)

badRequest

public static javax.ws.rs.core.Response.ResponseBuilder badRequest(java.lang.Object entity)

accepted

public static javax.ws.rs.core.Response.ResponseBuilder accepted()