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, withOptional
toString
fieldsExcludedFromEqualsAndHashCode
protected final MediaType contentType
public Charset getCharset(Charset defaultIfNotSet)
getCharset
in class Body<T>
public String getContentType()
getContentType
in class Body<T>
Copyright © 2022. All rights reserved.