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