Class RawManagerResponse
- java.lang.Object
-
- com.couchbase.client.java.manager.raw.RawManagerResponse
-
@Uncommitted public class RawManagerResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description RawManagerResponse(ServiceType serviceType, JsonSerializer serializer, int httpStatus, byte[] payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
contentAs(TypeRef<T> target)
Converts the payload into the target format.<T> T
contentAs(Class<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()
-
-
-
Constructor Detail
-
RawManagerResponse
public RawManagerResponse(ServiceType serviceType, JsonSerializer serializer, int httpStatus, byte[] payload)
-
-
Method Detail
-
httpStatus
public int httpStatus()
Returns the HTTP status code returned from the cluster.
-
serviceType
public ServiceType serviceType()
Returns the service type this response has been dispatched against.
-
contentAs
public <T> T contentAs(Class<T> target)
Converts the payload into the target format.- Parameters:
target
- the target class to deserialize into.- Throws:
DecodingFailureException
- if any row could not be successfully deserialized.
-
contentAs
public <T> T contentAs(TypeRef<T> target)
Converts the payload into the target format.- Parameters:
target
- the target class to deserialize into.- Throws:
DecodingFailureException
- if any row could not be successfully deserialized.
-
-