类 EndpointMediaTypes
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.EndpointMediaTypes
public class EndpointMediaTypes extends Object
Media types that are, by default, produced and consumed by an endpoint.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 EndpointMediaTypes(List<String> produced, List<String> consumed)
构造器详细资料
EndpointMediaTypes
public EndpointMediaTypes(List<String> produced, List<String> consumed)
- 参数:
produced
- the default media types that are produced by an endpoint. Must not benull
.consumed
- the default media types that are consumed by an endpoint. Must not
方法详细资料
getProduced
public List<String> getProduced()
Returns the media types produced by an endpoint.- 返回:
- the produced media types
getConsumed
public List<String> getConsumed()
Returns the media types consumed by an endpoint.- 返回:
- the consumed media types