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 |
---|---|
Charset |
getCharset(Charset defaultIfNotSet) |
String |
getContentType() |
getRawBytes, getType, getValue
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
protected 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.