Class 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.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description EndpointMediaTypes(List<String> produced, List<String> consumed)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getConsumed()
Returns the media types consumed by an endpoint.List<String>
getProduced()
Returns the media types produced by an endpoint.
Constructor Detail
EndpointMediaTypes
public EndpointMediaTypes(List<String> produced, List<String> consumed)
- Parameters:
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
Method Detail
getProduced
public List<String> getProduced()
Returns the media types produced by an endpoint.- Returns:
- the produced media types
getConsumed
public List<String> getConsumed()
Returns the media types consumed by an endpoint.- Returns:
- the consumed media types