public class BuiltResponsePreservingError
extends BuiltResponse
Response
with the stream fully read and closed so that the client can be re-used.
The entity may be stored as a string as type info is not available when it is deserialized, and that's a relatively convenient common format. TODO It would be nice to support other parsing, storing the byte array.
Constructor and Description |
---|
BuiltResponsePreservingError(int status,
|
Modifier and Type | Method and Description |
---|---|
static <T> javax.ws.rs.core.Response |
copyResponseAndClose(javax.ws.rs.core.Response source,
java.lang.Class<T> type) |
java.lang.Object |
getEntity() |