public abstract class BodyWithContentType<T> extends Body
| Modifier and Type | Field and Description |
|---|---|
protected MediaType |
contentType |
| Constructor and Description |
|---|
BodyWithContentType(Body.Type type,
MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getCharset(Charset defaultIfNotSet) |
String |
getContentType() |
getRawBytes, getType, getValuetoStringequals, fieldsExcludedFromEqualsAndHashCode, hashCode, keyprotected final MediaType contentType
public Charset getCharset(Charset defaultIfNotSet)
getCharset in class Bodypublic String getContentType()
getContentType in class BodyCopyright © 2019. All rights reserved.