> + String serverId;
> +
> + AttachCdromRequestBinder() {
> + super("cdrom");
> + this.requestBuilder = new HashMap<String, Object>();
> + }
> +
> + @Override
> + protected String createPayload(Server.Request.AttachCdromPayload payload)
> {
> +
> + dataCenterId = payload.dataCenterId();
> + serverId = payload.serverId();
> +
> + requestBuilder.put("id", payload.imageId());
> +
> + return (new Gson()).toJson(requestBuilder);
As @devcsrj commented elsewhere, can you inject the Json type instead and use
it? We shouldn't couple binders to a concrete json library.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/227/files#r51542762