@Stability.Uncommitted public class RawManagerResponse extends Object
Constructor and Description |
---|
RawManagerResponse(ServiceType serviceType,
JsonSerializer serializer,
int httpStatus,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
<T> T |
contentAs(Class<T> target)
Converts the payload into the target format.
|
<T> T |
contentAs(TypeRef<T> target)
Converts the payload into the target format.
|
int |
httpStatus()
Returns the HTTP status code returned from the cluster.
|
ServiceType |
serviceType()
Returns the service type this response has been dispatched against.
|
String |
toString() |
public RawManagerResponse(ServiceType serviceType, JsonSerializer serializer, int httpStatus, byte[] payload)
public int httpStatus()
public ServiceType serviceType()
public <T> T contentAs(Class<T> target)
target
- the target class to deserialize into.DecodingFailureException
- if any row could not be successfully deserialized.public <T> T contentAs(TypeRef<T> target)
target
- the target class to deserialize into.DecodingFailureException
- if any row could not be successfully deserialized.Copyright © 2021 Couchbase, Inc.. All rights reserved.