Class CreatedResponseUtil

  • public class CreatedResponseUtil
    extends Object
    A Utility class that parses the Response object into the underlying ID attribute
    John D. Ament, Stan Silvert (C) 2016 Red Hat Inc.
    • Constructor Detail

      • CreatedResponseUtil

        public CreatedResponseUtil()
    • Method Detail

      • getCreatedId

        public static String getCreatedId​( response)
        Reads the Response object, confirms that it returns a 201 created and parses the ID from the location It always assumes the ID is the last segment of the URI
        response - The JAX-RS Response received
        The String ID portion of the URI
        Throws: - if the response is not a 201 Created