Class TkProduces

  • All Implemented Interfaces:
    Take

    public final class TkProduces
    extends TkWrap
    Take that acts on request with specified "Accept" HTTP headers only.

    The class is immutable and thread-safe.

    Since:
    0.14
    • Constructor Detail

      • TkProduces

        public TkProduces​(Take take,
                          String types)
        Ctor.
        Parameters:
        take - Original take
        types - Accept types