> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Object input) {
> + throw new UnsupportedOperationException("Not supported yet.");
> + }
> +
> + protected abstract String createPayload(T payload);
> +
> + protected String ifNotEmpty(String pattern, Object param) {
> + try {
> + return Strings.isNullOrEmpty((String) param) ? "" :
> String.format(pattern, param);
> + } catch (ClassCastException ex) {
> + return Strings.isNullOrEmpty(param.toString()) ? "" :
> String.format(pattern, param);
> + }
> + }
> +
> + protected String ifNotNull(Object object) {
Same about naming. `nullableToString` or something similar?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r22133708