Class MediaTypeVoter
java.lang.Object
org.hawaiiframework.logging.config.MediaTypeVoter
Media type voter allows configuration of allowed media types.
-
Constructor Summary
ConstructorsConstructorDescriptionMediaTypeVoter(List<org.springframework.http.MediaType> contentTypes, boolean matchIfEmpty) The constructor with content types and whether to match if there are no content types. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmediaTypeMatches(String contentType) Check if themediaTypeis one of the configured content type.booleanmediaTypeMatches(org.springframework.http.MediaType mediaType) Check if themediaTypeis one of the configured content type.
-
Constructor Details
-
MediaTypeVoter
The constructor with content types and whether to match if there are no content types.
-
-
Method Details
-
mediaTypeMatches
Check if themediaTypeis one of the configured content type. -
mediaTypeMatches
public boolean mediaTypeMatches(org.springframework.http.MediaType mediaType) Check if themediaTypeis one of the configured content type.
-