Package com.woorea.openstack.base.client
Class Entity<T>
- java.lang.Object
-
- com.woorea.openstack.base.client.Entity<T>
-
public class Entity<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()TgetEntity()static <T> Entity<T>json(T entity)voidsetContentType(String contentType)voidsetEntity(T entity)static <T> Entity<T>stream(T entity)
-
-
-
Method Detail
-
json
public static <T> Entity<T> json(T entity)
-
stream
public static <T> Entity<T> stream(T entity)
-
getEntity
public T getEntity()
- Returns:
- the entity
-
setEntity
public void setEntity(T entity)
- Parameters:
entity- the entity to set
-
getContentType
public String getContentType()
- Returns:
- the contentType
-
setContentType
public void setContentType(String contentType)
- Parameters:
contentType- the contentType to set
-
-