public class EndpointMediaTypes
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static EndpointMediaTypes |
DEFAULT
Default
EndpointMediaTypes for this version of Spring Boot. |
| 构造器和说明 |
|---|
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)
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 not