Class Marshalling.Opaque<A>

  • All Implemented Interfaces:
    Marshalling<A>,, scala.Equals, scala.Product
    Enclosing interface:

    public static final class Marshalling.Opaque<A>
    extends java.lang.Object
    implements Marshalling<A>, scala.Product,
    A Marshalling to an unknown MediaType and charset. Circumvents content negotiation.
    See Also:
    Serialized Form
    • Constructor Detail

      • Opaque

        public Opaque​(scala.Function0<A> marshal)
    • Method Detail

      • marshal

        public scala.Function0<A> marshal()
      • toOpaque

        public Marshalling<A> toOpaque​(HttpCharset charset)
        Description copied from interface: Marshalling
        Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation. The given charset is used if this instance is a WithOpenCharset marshalling.
        Specified by:
        toOpaque in interface Marshalling<A>
        charset - (undocumented)