public class EndpointMediaTypes extends Object
Modifier and Type | Field and Description |
---|---|
static EndpointMediaTypes |
DEFAULT
Default
EndpointMediaTypes for this version of Spring Boot. |
Constructor and Description |
---|
EndpointMediaTypes(List<String> producedAndConsumed)
|
EndpointMediaTypes(List<String> produced,
List<String> consumed)
|
EndpointMediaTypes(String... producedAndConsumed)
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getConsumed()
Returns the media types consumed by an endpoint.
|
List<String> |
getProduced()
Returns the media types produced by an endpoint.
|
public static final EndpointMediaTypes DEFAULT
EndpointMediaTypes
for this version of Spring Boot.public EndpointMediaTypes(String... producedAndConsumed)
producedAndConsumed
- the default media types that are produced and consumed
by an endpoint. Must not be null
.public EndpointMediaTypes(List<String> producedAndConsumed)
producedAndConsumed
- the default media types that are produced and consumed
by an endpoint. Must not be null
.