diff options
author | seshukm <seshu.kumar.m@huawei.com> | 2018-07-25 19:30:51 +0800 |
---|---|---|
committer | seshukm <seshu.kumar.m@huawei.com> | 2018-07-25 19:30:51 +0800 |
commit | a2c59f3f843d75a5fd87bc322d5340ed115da1d2 (patch) | |
tree | 8daccbd183d1552b6eb863021ba30c32a52f7eb3 /openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java | |
parent | 92253f30556016a54e03c0476e94f234b362c6b2 (diff) |
Basic code refactoring base client
Issue-ID: SO-729
Change-Id: Ife12f0bc1670733fca76058f33d567f266ab2f7b
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java')
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java | 84 |
1 files changed, 42 insertions, 42 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 66130df..58ba733 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 @@ -20,51 +20,51 @@ import java.io.InputStream; public class Entity<T> { - - private T entity; - - private String contentType; - - public static <T> Entity<T> json(T entity) { - return new Entity<T>(entity, "application/json"); - } - - public static <T> Entity<T> stream(T entity) { - return new Entity<T>(entity, "application/octet-stream"); - } + + private T entity; + + private String contentType; + + public static <T> Entity<T> json(T entity) { + return new Entity<T>(entity, "application/json"); + } + + public static <T> Entity<T> stream(T entity) { + return new Entity<T>(entity, "application/octet-stream"); + } - public Entity(T entity, String contentType) { - super(); - this.entity = entity; - this.contentType = contentType; - } + public Entity(T entity, String contentType) { + super(); + this.entity = entity; + this.contentType = contentType; + } - /** - * @return the entity - */ - public T getEntity() { - return entity; - } + /** + * @return the entity + */ + public T getEntity() { + return entity; + } - /** - * @param entity the entity to set - */ - public void setEntity(T entity) { - this.entity = entity; - } + /** + * @param entity the entity to set + */ + public void setEntity(T entity) { + this.entity = entity; + } - /** - * @return the contentType - */ - public String getContentType() { - return contentType; - } + /** + * @return the contentType + */ + public String getContentType() { + return contentType; + } - /** - * @param contentType the contentType to set - */ - public void setContentType(String contentType) { - this.contentType = contentType; - } - + /** + * @param contentType the contentType to set + */ + public void setContentType(String contentType) { + this.contentType = contentType; + } + } |