Class JerseyResponseSupport

java.lang.Object
tech.anima.tinytypes.jersey.JerseyResponseSupport

public class JerseyResponseSupport
extends java.lang.Object
Class to register TinyTypes support on Jersey response headers.
  • Constructor Summary

    Constructors 
    Constructor Description
    JerseyResponseSupport()  
  • Method Summary

    Modifier and Type Method Description
    static void registerTinyTypes​(java.lang.Class<?> head, java.lang.Class<?>... tail)
    Registers Jersey HeaderDelegateProviders for the specified TinyTypes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • registerTinyTypes

      public static void registerTinyTypes​(java.lang.Class<?> head, java.lang.Class<?>... tail)
      Registers Jersey HeaderDelegateProviders for the specified TinyTypes.
      Parameters:
      head - a TinyType
      tail - other TinyTypes
      Throws:
      java.lang.IllegalArgumentException - when a non-TinyType is given