/** * Gets the activity ID for the request. * * @return the activity id. */ public String getActivityId() { return FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), HttpConstants.HttpHeaders.ACTIVITY_ID); }
/** * Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master * resources). * * @return the max resource quota. */ public String getMaxResourceQuota() { return FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), HttpConstants.HttpHeaders.MAX_RESOURCE_QUOTA); }
/** * Gets the continuation token to be used for continuing the enumeration. * * @return the response continuation. */ public String getResponseContinuation() { String headerName = useEtagAsContinuation ? HttpConstants.HttpHeaders.E_TAG : HttpConstants.HttpHeaders.CONTINUATION; return FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), headerName); }
/** * Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources). * * @return the current resource quota usage. */ public String getCurrentResourceQuotaUsage() { return FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), HttpConstants.HttpHeaders.CURRENT_RESOURCE_QUOTA_USAGE); }
/** * Gets the session token for use in session consistency. * * @return the session token. */ public String getSessionToken() { return FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), HttpConstants.HttpHeaders.SESSION_TOKEN); }
/** * Gets the number of index paths (terms) generated by the operation. * * @return the request charge. */ public double getRequestCharge() { String value = FeedResponse.getValueOrNull(this.inner.getResponseHeaders(), HttpConstants.HttpHeaders.REQUEST_CHARGE); if (StringUtils.isEmpty(value)) { return 0; } return Double.valueOf(value); }