diff options
Diffstat (limited to 'openstack-client/src')
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java index c68a308..1e2dfcc 100644 --- a/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java +++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java @@ -24,6 +24,12 @@ public class Entity<T> { private String contentType; + public Entity(T entity, String contentType) { + super(); + this.entity = entity; + this.contentType = contentType; + } + public static <T> Entity<T> json(T entity) { return new Entity<>(entity, "application/json"); } @@ -32,12 +38,6 @@ public class Entity<T> { return new Entity<>(entity, "application/octet-stream"); } - public Entity(T entity, String contentType) { - super(); - this.entity = entity; - this.contentType = contentType; - } - /** * @return the entity */ |