Class EndpointMediaTypes
java.lang.Object
org.springframework.boot.actuate.endpoint.web.EndpointMediaTypes
Media types that are, by default, produced and consumed by an endpoint.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EndpointMediaTypes
DefaultEndpointMediaTypes
for this version of Spring Boot. -
Constructor Summary
ConstructorDescriptionEndpointMediaTypes
(String... producedAndConsumed) EndpointMediaTypes
(List<String> producedAndConsumed) EndpointMediaTypes
(List<String> produced, List<String> consumed) -
Method Summary
Modifier and TypeMethodDescriptionReturns the media types consumed by an endpoint.Returns the media types produced by an endpoint.
-
Field Details
-
DEFAULT
DefaultEndpointMediaTypes
for this version of Spring Boot.
-
-
Constructor Details
-
EndpointMediaTypes
- Parameters:
producedAndConsumed
- the default media types that are produced and consumed by an endpoint. Must not benull
.- Since:
- 2.2.0
-
EndpointMediaTypes
- Parameters:
producedAndConsumed
- the default media types that are produced and consumed by an endpoint. Must not benull
.- Since:
- 2.2.0
-
EndpointMediaTypes
- 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 Details
-
getProduced
Returns the media types produced by an endpoint.- Returns:
- the produced media types
-
getConsumed
Returns the media types consumed by an endpoint.- Returns:
- the consumed media types
-