Class RequestSpecificConsumesProducesAcceptor<MethodRouting>

java.lang.Object
org.glassfish.jersey.internal.routing.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:
  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable<MethodRouting>
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object