public class JaxrsResponseBuilder
extends java.lang.Object
Resource Response Building Class Based on JAX - RS Standard.
Constructor and Description |
---|
JaxrsResponseBuilder()
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
newResponse(MethodResult methodResult)
Constructs a resource response based on the HTTP request processing result.
|
javax.ws.rs.core.Response |
newResponse(java.lang.Object responseEntityObj, int code)
Builds a resource response based on the result and response code.
|
public javax.ws.rs.core.Response newResponse(MethodResult methodResult)
Constructs a resource response based on the HTTP request processing result.
methodResult
- HTTP request result.public javax.ws.rs.core.Response newResponse(java.lang.Object responseEntityObj, int code)
Builds a resource response based on the result and response code.
responseEntityObj
- Indicates the resulting Java object.code
- status code.