Class ResponseConverterUtils

    • Method Detail

      • getGenericObject

        public static <T> ResponseConverter<T> getGenericObject​(java.lang.reflect.Type type,
                                                                java.lang.String property)
        Creates a generic ResponseConverter for a generic class.
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        property - the property
        Returns:
        the object converter
      • getInputStream

        public static ResponseConverter<java.io.InputStream> getInputStream()
        Creates an InputStream converter.
        Returns:
        the input stream converter
      • getObject

        public static <T extends ObjectModelResponseConverter<T> getObject​(java.lang.Class<? extends T> type)
        Creates a generic ResponseConverter for a POJO class that extends ObjectModel.
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the response converter
      • getObject

        public static <T> ResponseConverter<T> getObject​(java.lang.reflect.Type type)
        Creates a generic ResponseConverter for a POJO class.
        Type Parameters:
        T - the generic type
        Parameters:
        type - a Type instance that describes the type
        Returns:
        the response converter
      • getValue

        public static <T> ResponseConverter<T> getValue​(java.lang.Class<? extends T> type)
        Creates a generic ResponseConverter for a non-object response.
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the response converter
      • getValue

        public static <T> ResponseConverter<T> getValue​(java.lang.reflect.Type type)
        Creates a generic ResponseConverter for a response with a Type instance that describes the type.
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the response converter
      • getVoid

        public static ResponseConverter<java.lang.Void> getVoid()
        Gets the void converter.
        Returns:
        the void converter