Class RestClientUtils


  • public final class RestClientUtils
    extends Object
    Provides REST client utility functions.
    Author:
    aherscu
    • Method Detail

      • successful

        public static boolean successful​(jakarta.ws.rs.core.Response.StatusType status)
        Tests whether the status is successful.
        Parameters:
        status - the REST status
        Returns:
        true if the status belongs to Response.Status.Family.SUCCESSFUL
      • unauthorized

        public static boolean unauthorized​(jakarta.ws.rs.core.Response.StatusType status)
        Tests whether the status is unauthorised.
        Parameters:
        status - the REST status
        Returns:
        true if the status was Response.Status.UNAUTHORIZED