public abstract class BodyWithContentType<T> extends Body<T>
| Modifier and Type | Field and Description |
|---|---|
protected MediaType |
contentType |
| Constructor and Description |
|---|
BodyWithContentType(Body.Type type,
MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Charset |
getCharset(Charset defaultIfNotSet) |
String |
getContentType() |
int |
hashCode() |
getOptional, getRawBytes, getType, getValue, withOptionaltoStringfieldsExcludedFromEqualsAndHashCodeprotected final MediaType contentType
public Charset getCharset(Charset defaultIfNotSet)
getCharset in class Body<T>public String getContentType()
getContentType in class Body<T>Copyright © 2020. All rights reserved.