public class Entity<T> extends Object
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–2014. All rights reserved.