Class AcceptResolver

  • All Implemented Interfaces:
    Function<Invocation,​org.springframework.http.MediaType>

    public class AcceptResolver
    extends Object
    implements Function<Invocation,​org.springframework.http.MediaType>
    The accept resolver.
    Author:
    Christian Bremer
    • Constructor Detail

      • AcceptResolver

        public AcceptResolver()
    • Method Detail

      • apply

        public org.springframework.http.MediaType apply​(Invocation invocation)
        Specified by:
        apply in interface Function<Invocation,​org.springframework.http.MediaType>
      • parseMediaType

        protected org.springframework.http.MediaType parseMediaType​(String mediaType)
        Parse media type.
        Parameters:
        mediaType - the media type
        Returns:
        the media type (can be null