> +
> +import static org.jclouds.http.HttpUtils.releasePayload;
> +/**
> + * Parses an http response code from http responser
> + */
> +@Singleton
> +public class StatusCodeParser implements Function<HttpResponse, String> {
> + public String apply(final HttpResponse from) {
> + releasePayload(from);
> + final String statusCode = Integer.toString(from.getStatusCode());
> + if (statusCode != null) {
> + return statusCode;
> + }
> + throw new IllegalStateException("did not receive RequestId in: " +
> from);
> + }
> +}
This class is no longer used. Remove it?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/8d7d68bf33361d7f5df68c7e7232b03116ed6977#r58623368