Class MethodSelectingRouter.ConsumesProducesAcceptor

  • Enclosing class:
    MethodSelectingRouter

    private static class MethodSelectingRouter.ConsumesProducesAcceptor
    extends java.lang.Object
    Represents a 1-1-1 relation between input and output media type and an methodAcceptorPair.

    E.g. for a single resource method

       @Consumes("*/*")
       @Produces("text/plain","text/html")
       @GET
       public String myGetMethod() {
         return "S";
       }
     
    the following two relations would be generated:
    consumes produces method
    */* text/plain myGetMethod
    */* text/html myGetMethod