Class RequestSpecificConsumesProducesAcceptor<MethodRouting>

  • All Implemented Interfaces:
    Comparable

    public final class RequestSpecificConsumesProducesAcceptor<MethodRouting>
    extends Object
    implements Comparable
    A Comparable concrete request content-type, accept header, and a methodRouting triplet
    See Also:
    CombinedMediaType
    • Method Detail

      • getConsumes

        public CombinedMediaType getConsumes()
        Get request content type
        Returns:
        request content type
      • getMethodRouting

        public MethodRouting getMethodRouting()
        Get specified method routing
        Returns:
        method routing
      • getProduces

        public CombinedMediaType getProduces()
        Get Accept header media type
        Returns:
        request accept header
      • producesFromProviders

        public boolean producesFromProviders()
        Information whether getProduces() was set by providers}. If not, resource method was annotated by @Produces
        Returns:
        true if the produces media type was set by providers and not by @Produces annotation.