public final class Entity<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Entity<T> |
entity(T entity,
MediaType mediaType) |
static <T> Entity<T> |
entity(T entity,
MediaType mediaType,
Annotation[] annotations) |
static <T> Entity<T> |
entity(T entity,
String mediaType) |
static <T> Entity<T> |
entity(T entity,
Variant variant) |
static <T> Entity<T> |
entity(T entity,
Variant variant,
Annotation[] annotations) |
boolean |
equals(Object o) |
static Entity<Form> |
form(Form form) |
static Entity<Form> |
form(MultivaluedMap<String,String> formData) |
Annotation[] |
getAnnotations() |
String |
getEncoding() |
T |
getEntity() |
Locale |
getLanguage() |
MediaType |
getMediaType() |
Variant |
getVariant() |
int |
hashCode() |
static <T> Entity<T> |
html(T entity) |
static <T> Entity<T> |
json(T entity) |
static <T> Entity<T> |
text(T entity) |
String |
toString() |
static <T> Entity<T> |
xhtml(T entity) |
static <T> Entity<T> |
xml(T entity) |
public static <T> Entity<T> entity(T entity, MediaType mediaType, Annotation[] annotations)
public static <T> Entity<T> entity(T entity, Variant variant, Annotation[] annotations)
public static <T> Entity<T> text(T entity)
public static <T> Entity<T> xml(T entity)
public static <T> Entity<T> json(T entity)
public static <T> Entity<T> html(T entity)
public static <T> Entity<T> xhtml(T entity)
public static Entity<Form> form(MultivaluedMap<String,String> formData)
public Variant getVariant()
public MediaType getMediaType()
public String getEncoding()
public Locale getLanguage()
public T getEntity()
public Annotation[] getAnnotations()
Copyright © 2018 The Apache Software Foundation. All rights reserved.