-
- All Implemented Interfaces:
-
io.kuzzle.sdk.coreClasses.maps.Serializable
public final class Response implements Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private final KuzzleMapmapResponseprivate Stringroomprivate Objectresultprivate ErrorResponseerrorprivate StringrequestIdprivate Integerstatusprivate Stringcontrollerprivate Stringactionprivate Stringindexprivate Stringcollectionprivate Map<String, Object>Volatileprivate Stringprotocolprivate Stringscopeprivate Stringstateprivate Longtimestampprivate Stringtypeprivate Map<String, Object>headers
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
Modifier and Type Method Description final KuzzleMapgetMapResponse()final StringgetRoom()final UnitsetRoom(String room)final ObjectgetResult()Response payload (depends on the executed API action) final UnitsetResult(Object result)Response payload (depends on the executed API action) final ErrorResponsegetError()Error object (null if the request finished successfully) final UnitsetError(ErrorResponse error)Error object (null if the request finished successfully) final StringgetRequestId()Request unique identifier. final UnitsetRequestId(String requestId)Request unique identifier. final IntegergetStatus()Response status, following HTTP status codes final UnitsetStatus(Integer status)Response status, following HTTP status codes final StringgetController()Executed Kuzzle API controller final UnitsetController(String controller)Executed Kuzzle API controller final StringgetAction()Executed Kuzzle API controller's action. final UnitsetAction(String action)Executed Kuzzle API controller's action. final StringgetIndex()Impacted data index. final UnitsetIndex(String index)Impacted data index. final StringgetCollection()Impacted data collection. final UnitsetCollection(String collection)Impacted data collection. final Map<String, Object>getVolatile()Volatile data. final UnitsetVolatile(Map<String, Object> Volatile)Volatile data. final StringgetProtocol()Network protocol at the origin of the real-time notification. final UnitsetProtocol(String protocol)Network protocol at the origin of the real-time notification. final StringgetScope()Document scope ("in" or "out") final UnitsetScope(String scope)Document scope ("in" or "out") final StringgetState()Document state final UnitsetState(String state)Document state final LonggetTimestamp()Notification timestamp (UTC) final UnitsetTimestamp(Long timestamp)Notification timestamp (UTC) final StringgetType()Notification type final UnitsetType(String type)Notification type final Map<String, Object>getHeaders()Response headers final UnitsetHeaders(Map<String, Object> headers)Response headers UnitfromMap(Map<String, Object> map)Map<String, Object>toMap()StringtoString()-
-
Method Detail
-
getMapResponse
final KuzzleMap getMapResponse()
-
getError
final ErrorResponse getError()
Error object (null if the request finished successfully)
-
setError
final Unit setError(ErrorResponse error)
Error object (null if the request finished successfully)
-
getRequestId
final String getRequestId()
Request unique identifier.
-
setRequestId
final Unit setRequestId(String requestId)
Request unique identifier.
-
getController
final String getController()
Executed Kuzzle API controller
-
setController
final Unit setController(String controller)
Executed Kuzzle API controller
-
getCollection
final String getCollection()
Impacted data collection.
-
setCollection
final Unit setCollection(String collection)
Impacted data collection.
-
getVolatile
final Map<String, Object> getVolatile()
Volatile data.
-
setVolatile
final Unit setVolatile(Map<String, Object> Volatile)
Volatile data.
-
getProtocol
final String getProtocol()
Network protocol at the origin of the real-time notification.
-
setProtocol
final Unit setProtocol(String protocol)
Network protocol at the origin of the real-time notification.
-
getTimestamp
final Long getTimestamp()
Notification timestamp (UTC)
-
setTimestamp
final Unit setTimestamp(Long timestamp)
Notification timestamp (UTC)
-
getHeaders
final Map<String, Object> getHeaders()
Response headers
-
setHeaders
final Unit setHeaders(Map<String, Object> headers)
Response headers
-
-
-
-