private void validatePreSignedUrls() {
        if (pre_signed_put_url != null && pre_signed_delete_url != null) {
            PreSignedUrlParser parsedPut = new PreSignedUrlParser(pre_signed_put_url);
            PreSignedUrlParser parsedDelete = new PreSignedUrlParser(pre_signed_delete_url);
            if (!parsedPut.getBucket().equals(parsedDelete.getBucket()) ||
                    !parsedPut.getPrefix().equals(parsedDelete.getPrefix())) {
                throw HostControllerLogger.ROOT_LOGGER.preSignedUrlsMustHaveSamePath();
            }
        } else if (pre_signed_put_url != null || pre_signed_delete_url != null) {
            throw HostControllerLogger.ROOT_LOGGER.preSignedUrlsMustBeSetOrUnset();
        }
    }
private void validatePreSignedUrls ( ) { if ( pre_signed_put_url != null && pre_signed_delete_url != null ) { PreSignedUrlParser parsedPut = new PreSignedUrlParser ( pre_signed_put_url ) ; PreSignedUrlParser parsedDelete = new PreSignedUrlParser ( pre_signed_delete_url ) ; if ( ! parsedPut . getBucket ( ) . equals ( parsedDelete . getBucket ( ) ) || ! parsedPut . getPrefix ( ) . equals ( parsedDelete . getPrefix ( ) ) ) { throw HostControllerLogger . ROOT_LOGGER . preSignedUrlsMustHaveSamePath ( ) ; } } else if ( pre_signed_put_url != null || pre_signed_delete_url != null ) { throw HostControllerLogger . ROOT_LOGGER . preSignedUrlsMustBeSetOrUnset ( ) ; } }
Make sure {@code pre_signed_put_url} and {@code pre_signed_delete_url} are valid.