> + return claimWithHref.toBuilder()
> + .id(claimId)
> + .messages(messages)
> + .build();
> + }
> + };
> + private final ParseJson<ClaimWithHref> json;
> +
> + @Inject
> + ParseClaim(ParseJson<ClaimWithHref> json) {
> + this.json = checkNotNull(json, "json");
> + }
> +
> + @Override
> + public Claim apply(HttpResponse response) {
> + ClaimWithHref claimWithHref = json.apply(response);
Nope. If we've gotten this far, we know we have a valid response to parse.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/60/files#r8347375