public class Entity<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
T |
getEntity() |
static <T> Entity<T> |
json(T entity) |
void |
setContentType(String contentType) |
void |
setEntity(T entity) |
static <T> Entity<T> |
stream(T entity) |
public static <T> Entity<T> json(T entity)
public static <T> Entity<T> stream(T entity)
public T getEntity()
public void setEntity(T entity)
entity - the entity to setpublic String getContentType()
public void setContentType(String contentType)
contentType - the contentType to setCopyright © 2012–2017. All rights reserved.