Package com.restfb
Class ApiResult<T>
java.lang.Object
com.restfb.ApiResult<T>
- Type Parameters:
T- type of the mapped result
- All Implemented Interfaces:
Serializable
Carries the result of a Graph API call plus response metadata such as debug headers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ApiResult<T>withMetadata(T result, DebugHeaderInfo debugHeaderInfo, Map<String, List<String>> responseHeaders, Duration duration, String httpMethod, String requestUrl) static <T> ApiResult<T>withMetadata(T result, ResponseMetadata responseMetadata) static <T> ApiResult<T>withoutMetadata(T result)
-
Method Details
-
withMetadata
public static <T> ApiResult<T> withMetadata(T result, DebugHeaderInfo debugHeaderInfo, Map<String, List<String>> responseHeaders, Duration duration, String httpMethod, String requestUrl) -
withMetadata
-
withoutMetadata
-
getResult
-
getResponseMetadata
-
getDebugHeaderInfo
-
getResponseHeaders
-
getDuration
-
getHttpMethod
-
getRequestUrl
-