> + * Strip off everything but the message id.
> + */
> + private static String getIdFromHref(String rawMessageHref) {
> + int indexOfQuestionMark = rawMessageHref.indexOf('?');
> + int lastIndexOfSlash = rawMessageHref.lastIndexOf('/') + 1;
> +
> + if (indexOfQuestionMark > 0) {
> + return rawMessageHref.substring(lastIndexOfSlash,
> indexOfQuestionMark);
> + }
> + else {
> + return rawMessageHref.substring(lastIndexOfSlash);
> + }
> + }
> +
> + private static String getClaimIdFromHref(String rawMessageHref) {
> + int indexOfQuestionMark = rawMessageHref.indexOf('?') + 1;
I like it. Fixed.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/60/files#r8347623