Class RawManagerResponse
java.lang.Object
com.couchbase.client.java.manager.raw.RawManagerResponse
-
Constructor Summary
ConstructorDescriptionRawManagerResponse
(ServiceType serviceType, JsonSerializer serializer, int httpStatus, byte[] payload) -
Method Summary
Modifier and TypeMethodDescription<T> T
Converts the payload into the target format.<T> T
Converts the payload into the target format.int
Returns the HTTP status code returned from the cluster.Returns the service type this response has been dispatched against.toString()
-
Constructor Details
-
RawManagerResponse
public RawManagerResponse(ServiceType serviceType, JsonSerializer serializer, int httpStatus, byte[] payload)
-
-
Method Details
-
httpStatus
public int httpStatus()Returns the HTTP status code returned from the cluster. -
serviceType
Returns the service type this response has been dispatched against. -
contentAs
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
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.
-
toString
-