public static void checkRequiredPreconditions ( final boolean required , final String ifMatch , final String ifUnmodifiedSince ) { if ( required && ifMatch == null && ifUnmodifiedSince == null ) { throw new ClientErrorException ( status ( PRECONDITION_REQUIRED ) . build ( ) ) ; } }
Check whether conditional requests are required .