Package org.hisp.dhis.response
Class Response
java.lang.Object
org.hisp.dhis.response.BaseHttpResponse
org.hisp.dhis.response.Response
- Direct Known Subclasses:
EventResponse,JobInfoResponse,ObjectResponse
Message providing information about a DHIS 2 web API response.
- Author:
- Lars Helge Overland
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected Objectprotected Stringprotected Stringprotected Stringprotected StatusFields inherited from class org.hisp.dhis.response.BaseHttpResponse
headers, httpStatusCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the HTTP header with the given name, or null if not found.
-
Field Details
-
status
-
code
-
message
-
errorCode
-
devMessage
-
data
-
-
Constructor Details
-
Response
-
Response
-
-
Method Details
-
getHttpStatus
-
getHeader
Returns the value of the HTTP header with the given name, or null if not found.- Parameters:
name- the HTTP header name.- Returns:
- the HTTP header value.
-